in reply to Parsing badly formed RSS or XML

I've not played with RSS, but I can tell you that the XML specification explicitly states that bad XML must cause a parser abort.

If someone is outputting bad XML, you need to report it to them, not make allowances in your code. Otherwise, it's going to break with people who are not "cleaning up" their errors.

While the adage "be lenient what you accept, strict with what you give" is applicable in a large number of areas, XML parsing is not one them.

Don't tolerate badly formatted XML. Raise hell with them until they fix it.

--Chris

e-mail jcwren
  • Comment on (jcwren) Re: Parsing badly formed RSS or XML