Ron,

It's not the "value" property you want, it's the "text" property. And the
data for a node is another child of the node that contains it, so to access
the data for that first "userid" node, you'll need to tack on another level:

gparserObject2.child[1].child[1].child[1].child[1].child[1].text

Christopher Watson
Sr. Software Engineer
Lightspan, Inc.

-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 1/16/01 12:18 PM
Subject: <lingo-l> XML Question

So here is the issue. I have an xml document being parsed into director
that look like this

[snip XML]

If I do a parse on this tree like this I get this 
put gparserObject2.child[1].child[1].child[1].child[1].name
-- "userid"
However I can not seem to get the value of this tag which should be 0
or so 
The documentation says I should be able to get it by saying 
put gparserObject2.child[1].child[1].child[1].child[1].value 
However I get a <void> instead. What is can I do ?

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to