DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27087>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27087
End elements in namespaces have null prefix
Summary: End elements in namespaces have null prefix
Product: Xerces2-J
Version: 2.6.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Other
AssignedTo: xerces-j-dev@xxxxxxxxxxxxxx
ReportedBy: andyc@xxxxxxxxxx
The end element communicated by XNI does not match the start element
when namespaces are enabled and the element is bound to a namespace.
To recreate the bug, parse the following file:
<root xmlns='NS'></root>
using the xni.DocumentTracer sample. The output below using Xerces
2.6.1 shows that the start element has an empty string prefix, "",
but the end element has a null prefix:
startDocument(locator={publicId=null,literal
systemId="ns.xml",baseSystemId="file:///C:/java/xerces-2_6_1/ns.xml",expanded
systemId="file:///C:/java/xerces-2_6_1/ns.xml",lineNumber=1,columnNumber=1},encoding="UTF-8")
declaredPrefix(prefix="",uri="NS")
startElement(element={prefix="",localpart="root",rawname="root",uri="NS"},attributes={name={prefix=null,localpart="xmlns",rawname="xmlns",uri="http://www.w3.org/2000/xmlns/"},type="CDATA",value="NS",nonNormalizedValue="NS",augs={}}})
endElement(element={prefix=null,localpart="root",rawname="root",uri="NS"})
endPrefix(prefix="")
endDocument()
|