Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies


How to parse an APIs REST response?

5:56 pm on Sep 13, 2006 (gmt 0)

New User

10+ Year Member

joined:July 19, 2006
votes: 0

I started working with a few apis today to try a mashup. Ive never worked with rest before, and im having troubles finding help on how to parse the REST that the api sends to me.

<ResultSet xsi:schemaLocation="urn:search http://prices.xsd">
<Market id="51472" symbol="ADSRV2" name="Ad Services">
<Stock id="51473" symbol="CJ" name="Commission Junction">

Im not sure if I should be treating it like regular xml, or if theres a particular way to treat the xml. I can parse it to the page, but I cant figure out how to get the properties and attribues out... For example, it outputs 7.00 and 0.00 but wont say the symbol ADSRV2 or any of the other info.
Does anyone have any experiance with this? From my reading such as »codewalkers.com/tutorials/50/6.html your not really supposed to take the id, symbol and name. Although I think the data is useless without it

Thanks, John

5:27 am on Sept 14, 2006 (gmt 0)

New User

10+ Year Member

joined:July 19, 2006
posts: 2
votes: 0

Anyone have any advice or can anyone point me to the right direction? Ive tried a few other sites forums, and no one seems to know anything about this, or maybe im asking wrong? Maybe move the post?

Anything at all appreciated.

Thanks, John

5:32 am on Sept 14, 2006 (gmt 0)

New User

10+ Year Member

joined:Mar 19, 2004
votes: 0

i use DOMIT for all my XML parsing.


go through the examples and docs. you can parse the XMl and extract values and attributes. just take some visualization of the tree to get the correct nodes and then extracting the values or attributes.

good luck :-)


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members