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

Unclean message when calling importNode for node of type DOCUMENT_TYPE_NODE

           Summary: Unclean message when calling importNode for node of type
                    DOCUMENT_TYPE_NODE
           Product: Xerces2-J
           Version: 2.0.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


There is a extract of the code of CoreDocumentImpl.java : 

    private Node importNode(Node source, boolean deep, boolean cloningDoc,
                            Hashtable reversedIdentifiers)
        throws DOMException {

[...]
        int type = source.getNodeType();

        switch (type) {
[...]
            case DOCUMENT_TYPE_NODE: {
                // unless this is used as part of cloning a Document
                // forbid it for the sake of being compliant to the DOM spec
                if (!cloningDoc) {
                    throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
                                  "Node type being imported is not supported");
                }

I think the error message is too general, it should said clearly : "The DOM
forbid the import of a node of type document in a other document".

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

Reply via email to