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.
  • If it's not well formed, it's not XML. Period. Please don't encourage such vileness into the world.

    At least, if you do, don't put it into the XML namespace because that's not what it's producing.

    Sorry to come across mad about this, but dealing with invalid XML (and worse, SGML) over the last 5 years has made me bitter and twisted.

    For your well formed XML generation needs, I'm open to suggestions as to how I can improve XML::Genx [cpan.org] (within the constraints of the underlying library).

    -Dom

    • You really want to see the Perlmonks thread on this (I linked to it in the parent story). XML::Composer can easily produce valid XML and, to be honest, it produces XML much easier than most of the XML modules out there. Rather than slapping my hand when I use a namespace which is illegal or upper-case tags or improperly escaped data (shudder), it trusts me to really mean what I say. However, the fact is that we often have to deal with bad XML and there's no way around it. I hate it. You hate it. We ha

      • sigh. I certainly see the need. It just makes me cry. :-)

        And I apologise; I should have read the perlmonks thread first.

        As to the name, how about XML::NotWellFormed? It's the most accurate description even if it is an oxymoron.

        -Dom

      • I still don’t like the idea, even as I understand the predicament. I would suggest you use a templating system instead of writing a module for this. Text:Template and the Template Toolkit can easily produce arbitrarily complex and arbitrarily broken XML output.

        (Oh, and please get in touch with the people who’re asking broken XML from you and call them bozos [tbray.org]. Not offensively, of course.)

        • Believe me, I already had a phone call with a Yahoo! rep. He was very apologetic but there's not much I can do as a lone developer to shove Yahoo!