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=26198>.
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=26198

[XML 1.1]: CoreDocumentImpl.checkQName rejects names with supplemental characters

           Summary: [XML 1.1]: CoreDocumentImpl.checkQName rejects names
                    with supplemental characters
           Product: Xerces2-J
           Version: 2.6.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


CoreDocumentImpl.checkQName is used to check if a qualifed name is valid and is 
used in several contexts. It checks the prefix and local part character by 
character but fails to check for surrogates which are legal in XML 1.1. For 
example when I try to create an attribute with a legal qname containing 
supplemental chars on a XML 1.1 document an INVALID_CHARACTER_ERR error is 
raised.

Document doc;
...
doc.createAttributeNS("", "\udb7f\udfff:\udb7f\udfff");

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to