note
geektron
<i>I'm confused about why you want to avoid XML::Generator's auto-escaping of data. Because when you use an XML parser, the data should be auto-unescaped.</i>
<p>
Because I'm trying (for lack of a better way of doing it) to insert pre-rolled XML into a larger XML document. Without disabling escaping, I get:
<code>
<imageinfo>
<imageurl1 /><imagecaption1 /><imageurl2 /><imagecaption2 /><imageurl3 /><imagecaption3 /><imageurl4 /><imagecaption4 />
</imageinfo>
</code>
From:
<code>
$generator->imageinfo( $imageSection ),
</code>
(remember that $imageSection was generated within a loop).
Not a pretty sight, not valid XML ...
<p>
<i>I'm also confused about your data format. </i>
So am I. It's the requirement from a third party, and cannot be changed. Essentially, I'm trying to work *around* someone else's bizarro-world XML format.
560820
560822