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.
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:
<imageurl1 /><imagecaption1 /><imageurl2 /><image
+caption2 /><imageurl3 /><imagecaption3 /><imageurl4
+ /><imagecaption4 />
$generator->imageinfo( $imageSection ),
(remember that $imageSection was generated within a loop).
Not a pretty sight, not valid XML ...
I'm also confused about your data format.
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.