14:00
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Which Data Structure is good for this?
On 12/11/06, Sascha [EMAIL PROTECTED] wrote:
I would be interested in recommendations about what kind of data
structure
is best used in the following situation.
I'm loading in a XML file
On 12/12/06, Sascha [EMAIL PROTECTED] wrote:
Thanks Michael! You're right, E4X is sweet but in this case there are too
many things that hang onto it later so I want to create a custom data holder
that is more lightweight and fits the needs exactly. Using an object with
own API for every
I think Steven has already sent you the XML2AS code which is great. You
could also try the XMLParser class I wrote which is similar but adds a few
features. You can basically throw your XML document at it and it'll spit
back an object with properties arrays that follow the naming convention
from
function XML2AS(n, r) {
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes()) {
if ((k=n.firstChild.nodeType) == 1) {
r.attributes = n.attributes;
, 2006 13:05
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Which Data Structure is good for this?
function XML2AS(n, r) {
var a, d, k;
if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
else r = (a=r[k])[d=r[k].push({})-1];
if (n.hasChildNodes
On 12/11/06, Sascha [EMAIL PROTECTED] wrote:
I would be interested in recommendations about what kind of data structure
is best used in the following situation.
I'm loading in a XML file with a typical recursive structure, then the data
from it should be parsed into a data storage object and
6 matches
Mail list logo