From harmony2@swbell.net Tue Oct 10 21:40:42 2000 Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 78013 invoked from network); 10 Oct 2000 21:40:42 -0000 Received: from mta5.rcsntx.swbell.net (151.164.30.29) by locus.apache.org with SMTP; 10 Oct 2000 21:40:42 -0000 Received: from brak ([216.60.111.107]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0G2800HUWHESS2@mta5.rcsntx.swbell.net> for general@xml.apache.org; Tue, 10 Oct 2000 16:37:41 -0500 (CDT) Date: Tue, 10 Oct 2000 16:34:10 -0500 From: Eric Hodges Subject: RE: Question about document type nodes and JAXP In-reply-to: To: general@xml.apache.org Message-id: MIME-version: 1.0 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit Importance: Normal X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Priority: 3 (Normal) X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Bummer. So there's no way to duplicate an entire XML document using JAXP alone? That's what I was afraid of. I've already got a place for these "outside the current DOM spec" methods, but I just hate having to add more of them. > -----Original Message----- > From: Ed Staub [mailto:estaub@kana.com] > Sent: Tuesday, October 10, 2000 4:24 PM > To: 'general@xml.apache.org' > Subject: RE: Question about document type nodes and JAXP > > > It's in the W3C's DOM Level 2 Candidate Recommendation; see > http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-3A0ED0A4. (and thank > Arnaud!) > > So you should see other parsers pick it up if all goes well. > If you're still worried, I'd create a static method in your > utilities which > wraps it, e.g. > cloneNode(node, bDeep); > > -Ed > > -----Original Message----- > From: Eric Hodges [mailto:harmony2@swbell.net] > Sent: Tuesday, October 10, 2000 5:04 PM > To: general@xml.apache.org > Cc: xerces-j-dev@xml.apache.org; xerces-dev@xml.apache.org > 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:vramana@gst.fnc.fujitsu.com] > > Sent: Tuesday, October 10, 2000 3:56 PM > > To: general@xml.apache.org; eric.hodges@mongoosetech.com > > Cc: xerces-j-dev@xml.apache.org; xerces-dev@xml.apache.org > > 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: webmaster@xml.apache.org > > > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > > > For additional commands, e-mail: general-help@xml.apache.org > > > > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org >