Hi Thomas, As Sander points out, your code does not set the value of xmlns attribute.
Just to clarify the difference in behavior for different Xerces versions: in Xerces 2.0.1 the XMLSerializer was automatically performing namespace fixup, i.e. adding appropriate namespace declarations. Thus, the existing namespace decl on the testNode element was modified to include the namespace of testNode. In Xerces 2.4.0 this behavior is not available by default. If you want XMLSerializer to perform namespace fixup, you need either to use DOM L3 [1] or use setNamespace method on XMLSerializer. [1] http://xml.apache.org/xerces2-j/faq-dom.html#faq-3 Thank you, -- Elena Litani / IBM Toronto --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
