|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XMLSerializer in Xerces-J
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








