If you can be sure that there is only one such Element, why don't use this:
getElementsByTagName(yourUniqueTagName).item(0); It should give you the node without declaring a NodeList. -----Original Message----- From: "Iban Torres" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Fri, 8 Jun 2001 15:30:42 +0100 Subject: Accessing to a specific child Element > Hi all. > > Single question. I'd like to access to a specific child Element. > Knowing > that you have one and only one Element with the desired Tag Name, how > can I > get 'that' Element?. > I know that I can use getElementsByTagName(String), but ,as you > know it > returns a NodeList, so I have to declare a NodeList. > Any shorter way to do it? > > Thanks in advance. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Zhaohua Meng Hotlens.com Inc. http://www.hotlens.com 350 Fifth AVE Suite 3113 New York, NY 10118 Phone: 212-465-1700 Fax: 212-465-1710 email: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
