Page 1 of 1

is an XML tree generic

Posted: Tue Jun 23, 2009 5:25 pm
by el_stupido
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

Posted: Wed Jun 24, 2009 5:59 am
by Janschenkel
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.