OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XMLSerializer in Xerces-J

[ Lists Home | Date Index | Thread Index ]
  • From: Julian Reschke <julian.reschke@gmx.de>
  • To: xml-dev@lists.xml.org
  • Date: Tue, 17 Oct 2000 13:03:38 +0200

Hi,

I am trying to use Xerces' XMLSerializer to write out a DOM, using:

    FileWriter fos = new FileWriter( file );
    org.apache.xml.serialize.XMLSerializer ser = new
org.apache.xml.serialize.XMLSerializer
      (fos, new org.apache.xml.serialize.OutputFormat ("xml", this.encoding,
true));
    ser.serialize( this.document );

This works fine, except that namespace information is dropped. The DOM is
created from scratch, and createDocument (in DOMImplementation) was used to
create a document element in a specific namespace (I verified that
dom.getDocumentElement().getNamespaceURI() displays the right namespace
name).

What am I missing?

Julian





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS