Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 63198 invoked by uid 500); 15 May 2001 16:19:10 -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 Delivered-To: moderator for general@xml.apache.org Received: (qmail 95814 invoked from network); 15 May 2001 12:08:08 -0000 Message-ID: <818A7E7F87D1D21197F200A0C9EC65F10178E88A@zagh102a.zag.siemens.hr> From: Banicevic Petar To: "'general@xml.apache.org'" Subject: NodeList problem when using node.getChildNodes Date: Tue, 15 May 2001 14:07:32 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Problem is: My startpoint is node object. It has one child that is a text element. When I call node.getChildNodes for the result I get: the object having the same reference as node. (to be more clear I get the same thing as node, but type is NodeList) This confuses me I expected to get one text node. Is this bug ?? Because when node contains two childs then getChildNodes returns the NodeList containing two elements ! So why it behaves different when there is only one element in my "parent" node ??? --------------------------------------------------------------------- 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