'<div select="/rsp/user">' will produce a div element for each user
element node under rsp. I would recommend reading up on basic XPath
syntax, maybe try this: http://www.w3schools.com/xpath/xpath_intro.asp
mangotbg wrote:
Rather than make another thread, I guess I'll ask here:
If my xml file looked like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<rsp stat="ok">
<user>
<id>1234</id>
<firstName>bob</firstName>
<lastName>smith</lastName>
<birthDate>2006-02-06</birthDate>
</user>
<user>
<id>1235</id>
<firstName>joe</firstName>
<lastName>blow</lastName>
<birthDate>2001-08-06</birthDate>
</user>
</rsp>
How would I grab and display both user's id number? I've figured that
by changed the
+ '<div select="/rsp/user[1]">'
to
+ '<div select="/rsp/user[2]">'
switches the user, but how do I do both? Sorry for the noobish
questions, but thanks for your help!