is an XML tree generic

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
el_stupido
Posts: 24
Joined: Tue Jun 23, 2009 9:38 am

is an XML tree generic

Post by el_stupido » Tue Jun 23, 2009 5:25 pm

say I have a whole bunch of data in a field but it's all formated as XML
I put that into a variable and then use revCreateXMLTree etc to turn the variable into the xml tree

then once that's happened... is the tree global?

Could I be on one card that say 'lets the user add a number of phone numbers to their profile' and it has a routine to add a subset of data to the tree, once I've parsed the tree into memory, can I just access it like it's global? But without having to declare it?

Do something like

if profile/phonenumbers/default = "mobile" then etc etc

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Wed Jun 24, 2009 5:59 am

As far as Rev is concerned, the tree is just a number - an index in the data structures used in its XML handling routines. You can pass around this numeric id as parameter, in a global variable, etc.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Post Reply