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 Lars Martin <la...@smb-tec.com> on 2000/08/17 11:36:10 UTC

Serialize Document without present DOCTYPE?

Hi all,

I need to serialize a Document without its DOCTYPE definition which is present
in the DOM tree. For serialization I use org.apache.xml.serialize.XMLSerializer.
I modified the default OutputFormat argument to

	outputFormat.setDoctype (null, null);
	outputFormat.setStandalone (true);

but it doesn't help to omit the DOCTYPE while serialization. The documentation
says that these methods omit printing DOCTYPE. What goes wrong?

Regards,
Lars
-- 
___________________________________________________________________
Lars Martin                                 mailto:lars@smb-tec.com
SMB GmbH                                     http://www.smb-tec.com