in reply to XML::Simple exit problem

artist,

your problem seems to be that you have HTML-encoded characters in your xml feed.

The problem is that the only HTML-encoded characters allowed in XML are & (&amp;), < (&lt;), and > (&gt;). Everything else has to be a Unicode character (E.g. &#8026;). Btw. not all Unicode characters are permitted to be used.

There is a way though to get around all of this: Get your data/characters encased in a CDATA tag.

Now back to your problems and a few solutions

  1. It seems that you get unvalid XML.
  2. To get around this you have two possibilities:
    • Go to your XML source and ask them to verify their XML before they give it to you.
    • Preparse the XML and use regular expressions to eiter replace the unvalid character entities, or encase the data in CDATA tags.

thanks
/oliver/

Update: removed 'either' from sentence without second option.