Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 34783 invoked by uid 500); 5 Feb 2003 21:13:58 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 34765 invoked from network); 5 Feb 2003 21:13:58 -0000 From: "Arnaud Le Hors" To: Subject: RE: getChildNodes Date: Wed, 5 Feb 2003 13:14:29 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Let me clarify what I meant, when I said "no". I meant that the NodeList object is not necessarily always the same object. Such as one you could test for identity with == in java. The implementation is free to allocate a new object every time you call getChildNodes. This said, it is however the same logical object. Which is why the order of the nodes it contains doesn't change. -- Arnaud Le Hors - IBM, XML Standards Strategy Group / W3C AC Rep. -----Original Message----- From: Arnaud Le Hors [mailto:lehors@us.ibm.com] Sent: Wednesday, February 05, 2003 1:08 PM To: general@xml.apache.org Subject: RE: getChildNodes These are two different questions. The answer to the first one is no. The DOM spec doesn't impose this behavior to implementations. On the other hand, to answer your second question, assuming the document doesn't get modified between the calls the order of the nodes it contains will be the same. -- Arnaud Le Hors - IBM, XML Standards Strategy Group / W3C AC Rep. -----Original Message----- From: Ron Rothblum [mailto:RONR@il.ibm.com] Sent: Tuesday, February 04, 2003 5:01 AM To: general@xml.apache.org Subject: getChildNodes Can I always be sure that the method 'getChildNodes()' will return the same NodeList or can the order of the nodes be different from call to call? Thanks, Ron Rothblum. --------------------------------------------------------------------- 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