getting value from rest XML
Hello,
I have a question regarding getting values form a REST service made in XML.
The XML output looks like this:
code
<body>
<team>Barcelona</team>
<score for="1" against="2">1 - 2</score>
</body>
/code
When I map the response to an element and I edit the javascript inside that element, I do the following:
code
Your Team: value.team;
Your Score: value.score;
/code
The team shows, but the score output gives me undefined or empty. How do I get the score output? I'm guessing because the score ouput has attributes like "for" and "against" that value.score or value.score.content does not work.
So how do I do this?
Thank you!