Hey guys and gals,
I have a xml doc that I will be pulling in with $.ajax and a datatype of
xml. My question is two fold, how should I effeciently handle the return
xml file and is there an easy way to convert the xml doc to json format.
This is how I would normally use js to call the xml:
var text= xmldoc.getElementsByTagName("text")[0];
then something like text.getElementsByTagName('item')[0].getAttribute('tag')
That way seems to clunky, is there a better way.
the xml file:
<text>
<item tag="DELETEDIALOG" for="This is the text for the delete dialog
box"
txt="Are you sure you want to delete this item?"/>
</text>
thanks,
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
--
View this message in context:
http://www.nabble.com/working-and-xml-doc-or-converting-to-json-tf3150973.html#a8736724
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/