on 03-20-2008 2:31 PM
Hi,
Is there a way you can map a complete XML to a string field including <?xml version="1.0" encoding="UTF-8"?>?
The below is the XSL code I'm using:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://my.url">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<Import>
<importXML>
<xsl:copy-of select="." />
</importXML>
</Import>
</xsl:template>
</xsl:stylesheet>
I also have tried the below:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://my.url">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:template match="/">
<Import xmlns="http://my.url/">
<importXML>
<xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
<xsl:copy-of select="/"/>
<xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</importXML>
</Import>
</xsl:template>
</xsl:stylesheet>
The above code basically moves all the XML except for <?xml version="1.0" encoding="UTF-8"?>.
Thanks.
Hi,
Check this
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards
Seshagiri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about:
.....
<xsl:text disable-output-escaping="yes">
<![CDATA[<?xml version="1.0" encoding="UTF-8" ?>
......
]]>
If it does not work, Please refer to the "How to Handle Unstructured Source Contents for Adapters"
Liang
Edited by: Liang Ji on Mar 20, 2008 8:28 PM
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.