They are similar things IMO. If you specify a source file for XML or Model
tag, source (xml)file is compiled into swf. So no loading on runtime but a
large initial swf size. P

I think, Model should be good at performance because it is simple Object not
a XMLNode. 


Let's see, what other people say...


-abdul
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Tuesday, May 17, 2005 12:03 PM
To: [email protected]
Subject: [flexcoders] XML vs Model?

I've got a external source that pulls in XML file (config).

Now, I'm having my own internal debate as to which of the two is betterere?

I've noticed no real signficant performance gains (via profiler) with
using either, the only thing it kind of brings to the table is that
you can access a node XYZ levels deep by using property chains
(parent.child.infant.siblings).

Thats fine, but this will be parsed once-off, and i've found that i've
i go the XML route (ie writing my own specific parser, it tends to be
less work.

(in that i've found that you have nodes in your XML that are using the
same name, but can be either 1 or more, you have to test to see if the
node in question is an array, otherwise its a literal object and treat
it as such - when using model vs childNodes approach via XML (which is
always array).

What's folks here input on pro's / con's of XML vs Model?
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to