This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
The first parameter is the namespace URI of the element name (not the prefix, the URI the prefix is mapped to via xmlns:prefix). The second parameter is the local part of the element name (i.e. excluding the prefix).
I assume you are asking because you're looking for a namespaced element name. If there are no namespaces involved then I think you'll find there is a similar method named getElementsByTagName.
Joined: May 05, 2006
No.. I don't have any namespaces.. At least nothing specifically specified. I was looking at getElementsByTagNameNS because the problem with getElementsByTagName is that it gets ALL child nodes with a particular name..
Whereas, I'm trying to ensure that I only grab the immediate children with a given name. [ March 23, 2007: Message edited by: Jonathan Bagshaw ]