You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/05/14 21:59:51 UTC

DO NOT REPLY [Bug 9080] New: - NamespaceURI not assigned to Document during parse on DocumentBuilder

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

NamespaceURI not assigned to Document during parse on DocumentBuilder

           Summary: NamespaceURI not assigned to Document during parse on
                    DocumentBuilder
           Product: Xerces2-J
           Version: 2.0.1
          Platform: HP
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: fvillarreal@directhitdata.com


When calling the ...

public Document parse(java.io.InputStream is)

method of the DocumentBuilder class ... namespaces are not set on the 
resulting Document object even though they do exist in the InputStream's 
markup!  The resulting Document simply returns an empty String when calling 
Document.getNamespaceURI(). Although, what is interesting, is that the xmlns & 
targetNamespace attributes remain in the Document object if you convert it to 
String and print in out.  This behaviour impacts traversal of the Document for 
multi-namespace Documents.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org