Hello,
I have a button in my application which calls SendXMLOriginal to get data from Database and put it into Queue Messanger. After that a Batch Job uses XSLT-tranforming to manipulate resulting XML. Last phase is that XML data is stored into filesystem using FileAdapter,
I made a simple sample to show what I mean. The question is that how can I get rid of these Envelope, Header, Body, Endpoints etc tags because another application reads this file and it's XMLSchema and that Schema doesn't contain these Tags?
XSL-testfile
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<output>
XML-tags and data
</output>
</xsl:template>
</xsl:stylesheet>
Result
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
<Header><MessageId>{A7367491-1776-4ACF-BF26-307280602D93}</MessageId>
<SourceEndpoint>LocalEndpoint</SourceEndpoint>
<DestinationEndpoint>CEU</DestinationEndpoint>
<Action>http://schemas.microsoft.com/dynamics/2008/01/services/SalesSalesInvoiceService/read</Action>
</Header>
<Body>
<MessageParts xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Message">
<output xmlns="">
XML-tags and data
</output>
</MessageParts>
</Body>
</Envelope>
Br
Mike