Skip to Content
0
Aug 20, 2009 at 11:22 AM

String to XML using XSLT

359 Views

Hi

I am trying to extract XML from XML string which is inside a XML tag

My message looks like this

<?xml version="1.0" encoding="UTF-8"?>

http://schemas.xmlsoap.org/soap/envelope/">

<ns0:Data>

Here actual xml message resides

</ns0:Data>

I am using XSLT mapping as

<?xml version="1.0" encoding="UTF-8"?>

http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

<xsl:for-each select="Data">

<xsl:value-of select="." disable-output-escaping="yes"/>

</xsl:for-each>

</xsl:template>

</xsl:stylesheet>

When Iu2019m trying to execute this mapping in Interface mapping test

I am getting below error

Problem when building the tree , XML not well formed

Any clues???

Regards

SV