I am returning the following pseudo xml from a webservice:
<orders>
<orderr><stfuffa> </stuffa><stuffb></stuffb>
</order>
</orders>
I am using jquery to try to parse out the "Stuff"
success: function(msg) {
alert(msg.d); //shows me what I expected to come back in the XML, xml looks good
var random =$(msg.d).find('stuffb').t
ext(); //when I do this in an alert it outputs nothing...
alert(random); //this is empty and the problem
}
This code was working fine for me in Firefox. I have tried using : jquery.xml2json.js to get the results and failed at that as well. I don't really care how I get the data parsed out the msg, as long as it works in both browsers I'm fine. I am kinda new to JQuery and really like it so far, but if t can't parse in both firefox and IE it's worthless to me. Judging by all the information available on the net, there must be a workaround or I'm doing it wrong.
Start Free Trial