DOMParser is not part of the DOM Level 2. DOM Level 2 exposes getPublicId/getSystemId through DocumentType directly.
arkin Gregory Krasnow wrote: > > One more q.... > > XMLParser has getPublicId() and getSystemId() methods. Are these not > implemented for the DOMParser since DOM Level 2 is the process of being > added? > > - Greg > > -----Original Message----- > From: Assaf Arkin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 15, 2000 12:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [Xerces-J] DOM Serialization > > The way to retrieve a public/system id from DocumentType is DOM Level 2. > It is implemented, but is not available in the current DOM interface, > which is DOM Level 1. > > The DOCTYPE should print if you're using the latest version from the > CVS, I'm not sure about the binary distribution. > > At any rate, you might use OutputFormat to specify the public/system id, > if they are not known to the document. > > arkin > > Gregory Krasnow wrote: > > > > why is the DOCTYPE from an XML document not written out when the DOM is > > serailized using the XMLSerializer? > > Also, I cannot find a way to retrieve the public or system id from the > > DOCTYPE node... > > > > - Greg > > > > Gregory Krasnow > > Senior Software Engineer > > Stone Analytics, Inc. > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > Tel: 858.503.7540 x204 > > Fax: 858.503-7541 > > www.stonenalytics.com <http://www.stonenalytics.com/> > > > > -- > ---------------------------------------------------------------------- > Assaf Arkin www.exoffice.com > CTO, Exoffice Technologies, Inc. www.exolab.org -- ---------------------------------------------------------------------- Assaf Arkin www.exoffice.com CTO, Exoffice Technologies, Inc. www.exolab.org
