Perhaps you could look into the makeList method. Then you would be working
with another (large) property list. He is a snippet of code that assumes
you already created your parser object:
error = pxXMLParser.getError()
if voidP(error) then
myList = pxXMLParser.MakeList()
put myList
else
go the frame
return false
--Locating data...
end if
-- this is a guess...
-- when you "put" your property list you will need to figure
-- out how to get to the value you need
projName = myList[1].DBI.RESULTSET.ROW[1].userid[2]
----- Original Message -----
From: "Ronald Kozlowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 3:51 AM
Subject: <lingo-l> XML Question
>
> So here is the issue. I have an xml document being parsed into director
> that looks like this
> <?xml version="1.0"?>
> <DBI>
> <RESULTSET>
> <ROW>
> <userid>0</userid>
> <name>chick_mid</name>
> <link>chick_mid:part1</link>
> </ROW>
> <ROW>
> <userid>0</userid>
> <name>Flatworm</name>
> <link>Frogs:part2</link>
> <date>0000-00-00</date>
> </ROW>
> <ROW>
> <userid>0</userid>
> <name>Frog Calls</name>
> <link>Frogs:part2</link>
> <date>0000-00-00</date>
> </ROW>
> </RESULTSET>
> </DBI>
> 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 ? I am using Director
> 8.
> Can I actually parse this tree. Thanks
> -Ron
>
> Ronald N. Kozlowski, MS
> Academic Technology Specialist
> Multimedia Developer
> [EMAIL PROTECTED] or [EMAIL PROTECTED]
> Vade Mecum Group
> ASAP Media Services
> Tel: 207.581.4532
>
> [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!]
>
>
[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!]