Hi,
I have a lot of html content in a database. I need to export the content to xml. I am trying to figure out if the data is usable in its current form. I can't figure out how to retain the html tags.
For example: if my xml file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="tempdoc.xsl"?>
<!-- XML Document -->
<foo>
<bar>
<html>
<body>
<table>
<tr>
<td>xx</td>
<td>yy</td>
</tr>
<tr>
<td>bb</td>
<td>gg</td>
</tr>
</table>
</body>
</html>
</bar>
</foo>
And my xsl like:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fo="<xsl:template match="/">
<xsl:value-of select="foo/bar"/>
</xsl:template>
</xsl:stylesheet>
I get the following output:
xx yy bb gg
How do I retain my HTML formatting?
Thanks for any help.
I have a lot of html content in a database. I need to export the content to xml. I am trying to figure out if the data is usable in its current form. I can't figure out how to retain the html tags.
For example: if my xml file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="tempdoc.xsl"?>
<!-- XML Document -->
<foo>
<bar>
<html>
<body>
<table>
<tr>
<td>xx</td>
<td>yy</td>
</tr>
<tr>
<td>bb</td>
<td>gg</td>
</tr>
</table>
</body>
</html>
</bar>
</foo>
And my xsl like:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:fo="<xsl:template match="/">
<xsl:value-of select="foo/bar"/>
</xsl:template>
</xsl:stylesheet>
I get the following output:
xx yy bb gg
How do I retain my HTML formatting?
Thanks for any help.