11 messages in com.googlegroups.google-gadgets-apiRe: Can anyone help me grasp the _IG_...
FromSent OnAttachments
mangotbg26 Feb 2006 21:33 
p010ne27 Feb 2006 12:24 
Justin McConnell27 Feb 2006 15:03 
mangotbg27 Feb 2006 15:15 
e27 Feb 2006 15:24 
mangotbg27 Feb 2006 16:10 
mangotbg27 Feb 2006 16:12 
mangotbg27 Feb 2006 20:38 
norman01 Mar 2006 12:53 
p010ne03 Mar 2006 08:04 
p010ne03 Mar 2006 20:20 
Subject:Re: Can anyone help me grasp the _IG_FetchContent( command.
From:norman (asm@gmail.com)
Date:03/01/2006 12:53:25 PM
List:com.googlegroups.google-gadgets-api

'<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!