[xml] namespace error while parsing an xml(not a valid UR)



Hi

I get namespace error while parsing the below xml. I am using libxml2-2.9.0.

<node xmlns=" urn:microsoft-com:wmc-1-0"/>

According to a very old mail chain this should give a warning.
This used to be a warning in libxml2-2.6.30. But now it is an error.
Is there anyway to achieve the old behaviour in the latest libxml2-2.9.0?

The actaul error message is given below.

xmllint --debug test.xml test.xml:3: namespace error : xmlns: ' urn:microsoft-com:wmc-1-0' is not a valid URI
<node xmlns=" urn:microsoft-com:wmc-1-0"/>
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ ^


regards,
Jeganathan.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]