in reply to XML::Simple giving a non-specific error
I think that from a parser's point of view there isn't really much more that could be done (except maybe reporting the tag name). Unless you have a DTD that disallows <ERROR> tags to be nested etc. (and XML::Simple would actually do validation), the parser cannot tell that there's an error (i.e. unclosed <ERROR> tag) before having reached the end of file.
Update: I've never used the module myself, but maybe XML::Simple::DTDReader can help with the issue...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Simple giving a non-specific error
by ikegami (Patriarch) on Mar 12, 2010 at 00:21 UTC | |
by almut (Canon) on Mar 12, 2010 at 00:41 UTC | |
by ikegami (Patriarch) on Mar 12, 2010 at 00:50 UTC | |
by Anonymous Monk on Mar 12, 2010 at 00:23 UTC | |
by ikegami (Patriarch) on Mar 12, 2010 at 00:30 UTC |