XML-LibXML - XML won't parse with default namespace

Posted on Tue Apr 5 19:16:43 2005 by barry
XML won't parse with default namespace

I'm having trouble parsing an XML file with XML::LibXML when there is a default namespace:

<Mynode xmlns="http://somewhere/dot/com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://somewhere2/dot/com/myfile.xsd">
....
</Mynode>

If I add a namespace prefix it parses fine:

<n:Mynode xmlns:n="http://somewhere/dot/com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://somewhere2/dot/com/myfile.xsd">
....
</n:Mynode>

Anyone have any ideas? Thanks in advance.
Direct Responses: 1627 | Write a response