in reply to Parsing dodgy XML

Did you look at XML::Liberal? It looks like it would do what you want in a transparent way (don't know about the performance hit though).

Replies are listed 'Best First'.
Re^2: Parsing dodgy XML
by clinton (Priest) on Sep 20, 2006 at 15:17 UTC
    XML::Liberal looks sweet, and it correctly interpreted my dodgy file.

    It uses XML::LibXML as a base, and seems fast enough. How much speed can you ask for when you have to correct dumb avoidable errors?

    My only concern is that it is alpha and warns that it is liable to change, but I reckon it is usable, and the interface to underlying XML::LibXML methods are the same, so it is probably a safe bet.

    Also, if I try with the strict parsing first, then fall back to XML::Liberal, I'll probably be OK.

    many thanks