Advertisement

09.02.2008 at 10:13AM PDT, ID: 23696687 | Points: 125
[x]
Attachment Details

Parsing XML result from WS  using JQuery

Asked by alpacaman in Extensible Markup Language (XML), JavaScript, SOAP

Tags: ,

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').text(); //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
 
Loading Advertisement...
 
[+][-]09.02.2008 at 10:16AM PDT, ID: 22369330

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 12:26PM PDT, ID: 22370630

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 12:32PM PDT, ID: 22370717

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 12:35PM PDT, ID: 22370742

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 01:10PM PDT, ID: 22371138

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 01:11PM PDT, ID: 22371147

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.02.2008 at 02:57PM PDT, ID: 22372131

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.10.2008 at 11:11AM PST, ID: 22924472

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.11.2008 at 08:28AM PST, ID: 22931970

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628