in reply to Namespace error when parsing with XML::LibXML
My understanding of properly formed XML is that those namespace attributes should only have a single URI in them -- not two URIs separated by a space. It appears XML::LibXML would agree with me.
So if the XML is not well formed, I see only two optoins: You must either fix it at the source or munge the XML before trying to parse it. If you can't fix it at the source, I'd just hack in a very specific string substitution to convert that literal double-URI string into a single URI string.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Namespace error when parsing with XML::LibXML
by mathieu (Novice) on Oct 06, 2010 at 14:58 UTC | |
by ikegami (Patriarch) on Oct 06, 2010 at 16:04 UTC |
In Section
Seekers of Perl Wisdom