Please let me know, if there is any other way to solve this issue??
Sure. Update your copy of XML::SAX to a version where this is fixed. If there is no such version, write a fix yourself.
By the way, why do you want another solution, if yours seems perfectly simple and workable? Just the "There's more than one way to do it" principle taken to the extreme?
| [reply] |
I don't see the bug you're talking about here. Are you sure that's what's causing it? Not a bug in your SAX parser?
Also, '&' is not a character entity. Maybe you typed '&' though.
Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...
| [reply] |
XML::SAX::PurePerl is bundled with XML::SAX but you can and should install an alternate parser module to work withing the SAX framework. If you install another SAX parser such XML::SAX::Expat or XML::SAX::ExpatXS then it will become the system default SAX parser. In addition to not having the bug you're encountering, either of these modules will be significantly faster.
| [reply] |
I concur, upgrade XML::SAX, latest version is XML-SAX-0.96 :) | [reply] |