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 XML::Simple has trouble with it, likely so will XML::Parser.

    Two options you should look into first:

    • characters: does the data contain any invalid characters? Does the character set agree with the content-encoding? The default for XML is UTF-8.
    • Proper, matched nesting of tags.

    All in all, the error message as produced by XML::Parser, should give you a very specific pointer, line and column numbers, to where it thinks the first error occurs. I don't know if XML::Simple is as explicit.

    • XML::Simple's been dumping XML::Parser's errors at me most of the time. (I can't recall right now whether or not this error's been from Parser or Simple, but I can check it easily when I get home.)

      I was under the impression that XML::Simple really just tells XML::Parser to do the most obvious thing and hope it works, but if the well-formedness is truly in question, perhaps I should figure out what's going on. Now I've just got to learn more about RSS and fetch my XML handbook, and perhaps I can actually

      --

      ------------------------------
      You are what you think.