Re: [xml] SAX2 / empty namespace issue

Hi Daniel,

A new issue: when I switch to using xmlReadFile the empty namespace is
handled correctly, however I get an error on the following document:

<tests xmlns=""; xmlns:test="";>
 <testA attribute="pass" test:attribute="fail">This should be green.</testA>
 <testB attribute="fail" test:attribute="pass">This should be green.</testB>

Namespaced Attribute attribute in '' redefined

Is this correct? The first "attribute" is not in any namespace, as
unqualified attributes should not inherit the namespace of the element
that they are on. The second "attribute" is in the namespace, but should
not conflict with the previous attribute. How is this a redefinition?

Best regards,


YesLogic Prince prints XML!

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