Or you can write some XSLT that transforms the content nested data into what I described above.
Show the XSLT - you know what happens if you don't ;-):
<?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:output cdata-section-elements="content"/> <xsl:template match="/"> <page> <xsl:attribute name="id"><xsl:value-of select="page/@id" / +> </xsl:attribute> <content> <xsl:apply-templates /> </content> </page> </xsl:template> </xsl:stylesheet>
/J\
In reply to Re^4: Parse with XML::Simple: how to keep some tags "unparsed"?
by gellyfish
in thread Parse with XML::Simple: how to keep some tags "unparsed"?
by dda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |