Hi! I have a basic question with jQueryed ajax. How can I reach elements by tag name ?
I have this js: $.ajax({ url: "some.xml", type: "POST", dataType: ($.browser.msie) ? "text" : "xml", processData: false, complete: function(data) { var xml; if (typeof data == "string") { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.loadXML(data); } else { xml = data; } alert(xml.responseText); } }); and I have this "some.xml": <?xml version="1.0" encoding="UTF-8"?> <root> <item>apple</item> <item>banana</item> </root> So the problem is, that I don't know how reach "item"s. The old method (firstChild.text) doesn't works, of course, or does it ?