Hi Guys,
I’ve been working in as3 for quite a while now, trying various methods of loading in XML and parsing it between custom classes - from storing the XML data using objects, storing it in arrays and then parsing it to my custom classes, or parsing XML nodes directly between their relevant classes.
What I’m really trying to figure out is how best to store and parse data from XML throughout my classes.
Should I be extracting it all in the document class first, into arrays or objects, and then parsing the array or object to the relevant class? Or simply parsing the XML node that relates to the class and extracting the data there?
I’ve also heard that looping through XML and storing the data in multi-dimentional arrays before parsing it, is the way to go… some have also suggested using a separate public data class or singleton class to store all the variable data from xml… and referencing it globally in each class.
Any help or advice/suggestions would be greatly appreciated, guys… I’m pretty confused here.
Many thanks in advance.
Tom.