[jQuery] XML Parsing: Getting a node value
I have the following XML File:
<A>
<os:TestTag>10</os:TestTag>
<B>JSHDHSKJAD</B>
</A>
I want to get the tag os:TestTag value. I am using the following query
(This XML is in xmlDoc variable).
$("A", xmlDoc).find("os:TestTag").text();
The above query is not working, So I tried the below one:
$("A", xmlDoc).find("TestTag").text();
But no use.
How can I get that node value?