problems with getElementsByTagNameNS in org.w3c.dom

J

jeremyg

Hi,
i have an xml document with a namespace declaration ->
xmlns:hl7='urn:hl7-org:v3'

and want to parse it and return a nodelist with all tags that contain
the local name "result". it works fine with the getElementTagByName
method, e.g getElementsByTagName("hl7:result") works fine but i cant
get it to work when searching through a namespace. i have tried ->
getElementsByTagNameNS("urn:hl7-org:v3", "result")

and other variations of it but it wont return anything. i know the
problem is small but i just can't figure out the right solution!! any
helps greatly appreciated,
regards,
jeremy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top