Hi Simon, Thank you very much, I have allot to learn about parsing XML with a very short time line.
I have used your technique and it is working now. I had previously been using Xalan to serialize the DOM for output and have now changed it to use the org.apache.xml.serialize.XMLSerializer. I have a good understanding on how this JAXP API provides support for a pluggable Parser and am using this programming technique to build my Parser. Now my app is hard coded to using a specific implementation of a Serializer is there a similar strategy to use in obtaining a DOMSerializer? Regards, Greg -----Original Message----- From: Simon Kitching [mailto:[EMAIL PROTECTED] Sent: Monday, January 13, 2003 4:04 PM To: [EMAIL PROTECTED] Subject: Re: How to build DOM with a DOCTYPE? Hi Greg, You don't mention what technique you are using to serialize your DOM. If you are using org.apache.xml.serialize.DOMSerializer, then the OutputFormat object which is passed to its constructor has the following method: OutputFormat.setDoctype(String doctypePublic, String doctypeSystem) Regards, Simon On Tue, 2003-01-14 at 05:15, Greg Hess wrote: > Hi All, > > > > I have been building a Document with a DOCTYPE using the > DOMImplementation but when I serialize the DOM to file or OutputStream > the DOCTYPE is missing. > > > > How can I achieve this? > > > > Many thanks, > > > > Greg > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
