So, you want to do this with JavaScript.
DOM level 2 has methods for dealing with namespaces, but unfortunately Internet Explorer doesn't support these.
So you are left with the following options:
- Don't support IE.
- Write the code ignoring namespaces using DOM level 1 methods.
- Find JavaScript XML library that supports namespaces.
- Develop your own JavaScript XML library.
- Just use a regex to extract those strings.
Rene Saarsoo
2009-06-03 06:11:42