xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Mörén <johan.mo...@spray.se>
Subject serializing the Docktype
Date Tue, 01 Feb 2000 09:39:43 GMT
Hi i'm having trouble with serializing my documents. It feels like i tried
everything but maybe someone can point me in the right direction. 

The document serializes fine to a file on my system, however the "<!DOCTYPE
content SYSTEM "content.dtd">" won't show up in the serialized file.

This is the document and the JavaCode im using when to serialize the doc
with the XMLSerializer:

**** JAVACODE ****

FileOutputStream fOut = new FileOutputStream(daFile);
OutputFormat oFormat = new OutputFormat(doc,"ISO-8859-1",false);
XMLSerializer xmlz = new XMLSerializer(fOut,oFormat);

**** /JAVACODE ****

***** XML *****

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE content SYSTEM "content.dtd">
<?xml-stylesheet type="text/xsl" href="regular.xsl"?>
		<AUTHOR>Arne Keutram</AUTHOR>
		<NAME>sport sitetips 24/1</NAME>
   		<HEADING>Dagens Sitetips</HEADING>
   		<PUSHER>Surfa till den här siten. Den rockar.</PUSHER>
   		<BODY>Some Text</BODY>
				<TEXT>Cool bil</TEXT>

**** XML ****

Tnx in advance!!

Johan Mörén | johan.moren@spray.se
Tel: 08-52790258 | Mob: 0709-322214
Home: 08-332826 | ICQ: 40762148

View raw message