Is there is a way to get all attributes for a given name in an XML document?
i.e.
<details isExpanded='false'>
<name isExpanded='false'>
<firstname>
<lastname>
</name>
<phonenos isExpanded='false'>
<home>
<work>
<fax>
<mob>
</phonenos>
</details>
<stuff isExpanded='false'>
…
…
…
</stuff>
I want to get all 'isExpanded' attributes so I can change their values.
There is a method to get all elements: getElementsByTag("details") would return the details node… surely theres one for all attributes???
The only other way i see is to iterate through all elements and see if they have that attribute, then modify it. Don't particularly want to go down this path as i MANY elements in the form.