Re: Parsing out chunks of .xml from a binary file



cjhorton wrote:
I have binary files that have chunks of .xml data in them that I want
to parse out and use.

Have you tried a regular parser such as XML::Simple? I can't think of
any reason why an ordinary XML parser would care about the binary
portion of the file (a good parser ought to ignore what it cannot
understand). Perl certinally doesn't care if an input stream is
"binary" or ASCII (it's all the same to Perl). But I've never actually
tried parsing mixed XML.

If a regular parser doesn't work, could you post a sample of your data
on a webserver somewhere and furnish a link?

--
http://DavidFilmer.com

.