Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 93179 invoked from network); 7 Aug 2000 20:37:27 -0000 Received: from mailhub1.almaden.ibm.com (198.4.83.44) by locus.apache.org with SMTP; 7 Aug 2000 20:37:27 -0000 Received: from sun1.cupertino.ibm.com (sun1.cupertino.ibm.com [9.6.22.48]) by mailhub1.almaden.ibm.com (8.8.8/8.8.8) with ESMTP id NAA19700 for ; Mon, 7 Aug 2000 13:34:54 -0700 Received: from hyperreal.org (ARUNDHATI.cupertino.ibm.com [9.6.22.250]) by sun1.cupertino.ibm.com (8.9.3/8.9.0) with ESMTP id NAA23971 for ; Mon, 7 Aug 2000 13:37:00 -0700 (PDT) Message-ID: <398F1DD9.E3A8F405@hyperreal.org> Date: Mon, 07 Aug 2000 13:36:41 -0700 From: Arundhati Bhowmick Organization: IIBM -- XML Technology Group (Silicon Valley) X-Mailer: Mozilla 4.7 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: general@xml.apache.org Subject: Re: Getting DTD in an output XML file References: <012201c000a4$82092d90$6b28598a@shoeless> Content-Type: multipart/alternative; boundary="------------5AE1C6055963D24822EE97F2" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N --------------5AE1C6055963D24822EE97F2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Xerces 1.2.0 version has the dctype features. Using this version you can create a doctype, using this doctype create the document and set in the parser before parsing. All the DTD information will be part of your DOMTree. You can try in the current DOMPrint sample. Arundhati Steve Buroff wrote: > I have an application where the DTD is distributed. Most of it is ina > separate file but there is some in the DOCTYPE declaration ofthe XML > file. My problem is in writing out a modified version of theXML file. > I use the OutputFormat.setDoctype() method and thisdoes give me the > DOCTYPE declaration with the correct SYSTEMvalue. However, I can't > figure out how to get the rest of the DTD, thepart that was in the > DOCTYPE declaration in the input XML file,into the output file. I'm > using xerces 1.1.3 and DOM. Any suggestions would be appreciated.TIA. > Steve Buroff -- Arundhati Bhowmick IBM -- XML Technology Group (Silicon Valley) --------------5AE1C6055963D24822EE97F2 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Xerces 1.2.0 version has the dctype features. Using this version you can create a doctype, using this doctype create the document and set in the parser before parsing. All the DTD information will be part of your DOMTree. You can try in the current DOMPrint sample.
Arundhati

Steve Buroff wrote:

I have an application where the DTD is distributed. Most of it is ina separate file but there is some in the DOCTYPE declaration ofthe XML file. My problem is in writing out a modified version of theXML file. I use the OutputFormat.setDoctype() method and thisdoes give me the DOCTYPE declaration with the correct SYSTEMvalue. However, I can't figure out how to get the rest of the DTD, thepart that was in the DOCTYPE declaration in the input XML file,into the output file. I'm using xerces 1.1.3 and DOM. Any suggestions would be appreciated.TIA. Steve Buroff
--
 

Arundhati Bhowmick
IBM -- XML Technology Group (Silicon Valley)
  --------------5AE1C6055963D24822EE97F2--