Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • That this isn't an XML parser. It is majorly broken in various ways. It's more of a tag-soup parser. I still think you should change the name of it.
    • You're right. It should be called "XML::Retarded", and come with a special helmet that its users should have to wear for if/when they walk into a door and go bonk and cry.

      And what's this guy going on about the other modules having too many dependencies? XML::Parser::Lite has none, last I looked. And wasn't RETARDED.

      • Unless I'm missing something, XML::Parser::Lite is not a standalone module, it only comes embedded inside SOAP::Lite, which has 60 bugs, 16 cpan testers failures, and has a dependency on XML::Parser.

        Unless you are talking about something else.

        Additionally, ::Tiny modules always are a bit controvertial. There's always arguments about where to draw the line between feature-set and code size.

        How EXACTLY is it retarded?
        • His unescaping logic is daffy, and his attribute syntax rejects half the XML that I write in the course of a day. But then, he could always say "I meant to do that!".

          He (or you!) should just grab XML::Parser::Lite and release it as a standalone module. The fact that XML::Parser::Lite is currently available only in that SOAP dist is a great big mistake-- and a mistake which bears fixing, which is more than I can say for this XML::Tiny mess.

          • > The fact that XML::Parser::Lite is currently available only in that SOAP dist is a great big mistake-- and a mistake which bears fixing

            This is primarily because I believe there was (and still is) a valid reason for it NOT to be released as a standalone module: it doesn't handle char/entity references (among other things). While I appreciate Earle Martin's effort to make the module more easily available to people, I think this is a too serious limitation to ignore. SOAP::Lite is able to deal with it, but any other app will need to come up with its own solution.

            I'm sure there are ways to fix this; I even wrote another module that doesn't have that limitation (XML::ReParser), but never released to CPAN. This limitation is primarily caused by inconsistencies in how regexps are supported inside ?{} code; you can find more details and references to XML::ReParser here: http://beta.nntp.perl.org/group/perl.perl5.porters/2001/07/msg41148.html [perl.org]

            I probably should just use whatever way works to process entities and release both Parser::Lite and ReParser. Paul.