"Neil Sherman" <[EMAIL PROTECTED]> writes: > In the above document I can read the id value of the index element, but > what I would then like to be able to do is a simple query such as find my > the "MY_ELEMENT" which has "200" for its ID. At the moment I am having to > obtain a full list of "MY_ELEMENT" nodes and cycle through each one > checking it's id against the id I have from the <INDEX> element. This is > incredibly wasteful if I have to look up more than one item in the > <MY_ELEMENT> list!
Two choices: * use DOM, and make the attribute you want to search on type ID, and use the getElementById() method * build a hash table of all the elements and the attribute values, and look it up in your hash table. jas. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]