Also, cloneNode doesn't provide a way to attach the document type node to the new document. So I still need a way to copy a document type node from one document to another.
> -----Original Message----- > From: Eric Hodges [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2000 4:04 PM > To: general@xml.apache.org > Cc: xerces-j-dev@xml.apache.org; [EMAIL PROTECTED] > Subject: RE: Question about document type nodes and JAXP > > > Unfortunately that's a xerces specific method. Like I said, we're using > Xerces through JAXP, so we want to avoid tying ourselves to any > XML parser. > > > > -----Original Message----- > > From: Venkat Ramana Karpuram [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, October 10, 2000 3:56 PM > > To: general@xml.apache.org; [EMAIL PROTECTED] > > Cc: xerces-j-dev@xml.apache.org; [EMAIL PROTECTED] > > Subject: Re: Question about document type nodes and JAXP > > > > > > HI Eric! > > I think the Api "cloneNode" which is in > > org.apache.xerces.dom.DocumentImpl should help you out. Please > check the > > documentation to make sure of it. I used long time back and i > > remember i didn't > > had any problems. > > > > Thanks > > Venkat Ramana > > > > Eric Hodges wrote: > > > > > I need to duplicate XML documents. I'm using Xerces, going > > through the JAXP > > > interface. I can't find any way to copy the document type > node from one > > > document to a new one. What are other people doing in this > > situation, or is > > > there a suggested way to do it? > > > > > > Thanks. > > > > > > --------------------------------------------------------------------- > > > In case of troubles, e-mail: [EMAIL PROTECTED] > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > In case of troubles, e-mail: [EMAIL PROTECTED] > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >