I have an XML file generated using javax.sql.rowset.WebRowSet.writeXml which looks like:
<metadata>
This section has column properties like name / label etc
</metadata>
<data>
<currentRow>
<columnValue>Ken</columnValue>
<columnValue>12</columnValue>
<columnValue>USA</columnValue>
</currentRow>
</data>
I want to convert this to look like:
<Class>
<Student>
<name>Ken</name>
<ID>12</ID>
<location>USA</location>
</Student>
</Class>
How can I do the conversion? I need this to transform the XML to a HTML table.
currentRowelement, and multiplecolumnValueelements? - James Johnson