in reply to XML::Twig error handling
I am not quite sure I understand the behaviour you are looking for. Could you provide an example of XML and what you would like your code to do with it?
From your post, 'no such attribute' or 'no such XML tag' do not prevent the XML from being well-formed: they would cause the XML not to be valid (against a DTD), but expat is a non-validating parser. So the parser cannot report that kind of error. If the XML is not well-formed, then in any case the parser will stop at the first error. This behaviour is required by the XML spec (fatal error).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Twig error handling
by ramya2005 (Scribe) on Sep 20, 2005 at 16:55 UTC | |
by runrig (Abbot) on Sep 20, 2005 at 17:30 UTC | |
by mirod (Canon) on Sep 21, 2005 at 08:56 UTC |