I was looking at logging some complex data, and thought that XML would be a good candidate, and wanted to look at an event-based parser in case I'm dealing with a lot of data--so I don't have to hold a giant DOM in memory.
But XML::Parser doesn't seem to support XML fragments, it throws "junk after document element" when it gets to the second <logentry> because it thinks the first <logentry> is the root node of the XML document. I'm not finding an option in there to tell XML::Parser not to bother validating that.
I'm looking for something in the spirit of this post
, anybody here have any ideas?