You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/01/10 14:54:59 UTC
DO NOT REPLY [Bug 5779] New: -
Missing namespace information on serialized DOM nodes
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=5779>.
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=5779
Missing namespace information on serialized DOM nodes
Summary: Missing namespace information on serialized DOM nodes
Product: XalanJ2
Version: CurrentCVS
Platform: All
OS/Version: All
Status: NEW
Severity: Critical
Priority: Other
Component: org.apache.xml.utils
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: cziegeler@apache.org
The current implementation of the DOMBuilder or the DOM serializer (I really
don't know) has problems when serializing DOM nodes.
Attached is a test class (called Test2) and an XML document (a.xml).
The test class reads the document using a SAX Parser, and
creates a DOM object. Then an inner child of the DOM is serialized
to a new document called b.xml. As you can see, the resulting document
has no namespace declarations! (However serializing the whole document a.xml
works fine.)
Either the used DOMBuilder doesn't set the namespace information correctly in
the DOM or the serializer doesn't look up the namespace information from parent
nodes.