Change to importNode to copy prefixes breaks when xmlns="" is present
---------------------------------------------------------------------
Key: XERCESC-1913
URL: https://issues.apache.org/jira/browse/XERCESC-1913
Project: Xerces-C++
Issue Type: Bug
Components: DOM
Affects Versions: 3.1.0
Environment: Affects all platforms
Reporter: Scott Cantor
A change to importNode was made to copy over prefixes of nodes with non-empty
namespaces, using setPrefix. This causes setPrefix to throw a DOMException if
called on the default namespace declaration node (xmlns="") because it checks
for that explicitly.
The revised fix should check for that case in one of the two spots, probably in
setPrefix by ignoring the issue when the prefix supplied is NULL.
Mailing list thread here:
http://marc.info/?t=126620794700001&r=1&w=2
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]