Just build a quick tool to handle a small subset.
The XML in question is generated by an in-house Java app written by a co-worker. The Root attribute format is hardcoded so
for this application only I'm confident that the format will not change. I'm well aware of the pitfalls of regex parsing and would not (and in fact
do not in other code) dream of doing that when parsing XML from another source.
In my reply to
juerd I mentioned that this code runs on a 'gateway' box. That box just accepts XML from a socket connection, archives the XML and then forwards it on to the database box for
real parsing via XML::Parser(including the handling of base64 encoded print images & other fun stuff). Therefore the only thing this code needs to do is to be able to identify the type of XML message - as specified by the 'Group' attribute of Root so that the XML can be archived correctly.
The intent of my post (and I know I should have clarified it) was really to have people comment on the regex. I didn't mean to start a war over whether or not you
should use a parser or not.