I'm write a Air application that consumes a beta webservice API. Sometimes this APIreturns me a malformed XML node and actionscript will raise an error when I try creating the XML object out of it.
What I've been doing is just try/catching the result and ignore the whole response if the XML is bad, but I could just ignore the malformed node.
For example:
<result>
<Song>
<location>http://www.anyurl.com/audio/loftparty092108_pt4.mp3</location>
<title>Phonte party @ The Loft, 9/21/08 (pt. 4)</title>
<artist>Statik, Jahsonic & Stylus <artist>Statik, Jahsonic & Stylusre />
</Song>
</result>
See that tag? If I fould something like that, I'd like to skip the whole Song and get the next one.
Is there any way I could accomplish this?