Answer for:

XML: How to convert an XML file into a table?

Message 6 of 5

View entire thread
0 Votes

A simple style sheet would suffice.

<xsl:stylesheet xmlns:xsl="" version="1.0">
<xsl:output method="html" doctype-system="" doctype-public="-//W3C//DTD HTML 4.01//EN" indent="yes"/>
<xsl:template match="/">
<!-- Assuming the content of each row is text and not an attribute of a tag-->
<xsl:for-each select="/trow/contents">
<tr><td><xsl:value-of select="."/></td></tr>



This should work if you change the path. You can also send it out as text and save it to file. It's not hard, look it up.