Okay, right on. The problem now is where I should do the encoding. XML::Parser bombs out and
dies as soon as it sees the ampersand, before it gets passed to the handler.
I want to be able to either scan the XML from a file or get it from a socket. Am I going to have to read the data from one of those two places first, do the encoding, then have XML::Parser parse the results? That seems hard, because I'd have to decide before parsing what should be parsed (I don't want to go replacing the quotes around XML attributes with " - the XML parser wouldn't be able to parse).
Is there some easier way to do the encoding? Is there any way at all I can keep XML::Parser from crapping out before I get a chance to replace the ampersand?
Thanks...
---
donfreenut