VirtualRider has asked for the wisdom of the Perl Monks concerning the following question:
i'm using the XML::SAX::PurePerl-parser because i'm not able to use anything other than pure perl.
Is there a way to send unkown entities to an default handler like it is possible with XML::Parser? I need to do some more complicated tasks with those entities than replacing it with text.
Right now i'm also stuck at a weird problem: My XML file contains <tag><SOMETHING></tag> this seems to be resolved to <tag><SOMETHING></tag> and leads to an 'Invalid element name'-error. I can't believe this is the proper behavior - any suggestions?
Feel free to ask if i should point something out in more detail.
Thank you
VR
UPDATE: I accidentally added < and > to the dtd-entities. This caused the 'Invalid element name'-error.
I think it could work, but it's rather inconvenient to generate <!ENTITY entname "replacement"> for each of my custom-entities
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::SAX::PurePerl, handle entities
by ikegami (Patriarch) on Aug 12, 2010 at 16:02 UTC | |
by VirtualRider (Initiate) on Aug 12, 2010 at 17:17 UTC | |
by ikegami (Patriarch) on Aug 12, 2010 at 17:44 UTC | |
by VirtualRider (Initiate) on Aug 12, 2010 at 18:13 UTC | |
by ikegami (Patriarch) on Aug 12, 2010 at 18:25 UTC |