I just release a new plugin last week that might help you do this...

XML to JSON plugin v1.0
http://www.fyneworks.com/jquery/xml-to-json/

Assume the XML in your example was store as a string in variable 'str', you
could do this:

var json = $.xml2json(str);
var tagB = json.B;
var tagTest = json['os:TestTag'];

2008/7/12 Arun Kumar <[EMAIL PROTECTED]>:

>
> 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?
>



-- 
Cheers,
Diego A.

Reply via email to