This won't help with the loading if the XML file is large, but it will
help with the parsing - use xfactorstudios Xpath classes to access the
nodes in the XML file (or hand-roll some code yourself) instead of
parsing all of it at once.  Also, try loading the XML files one at a
time.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com









>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Pete Hotchkiss
>>Sent: Wednesday, February 01, 2006 4:17 AM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] XML Driven Application Driving me crazy :)
>>
>>Just clarify a few tings on this.
>>
>>This is an App running on a CD - that queries a DB which is online?
>>
>>I'm guessing that part of the problem is the sheer volume of data
being
>>passed back to the App. XML is great when there is a reasonable amount
>>of data to parse, is this gets significantly large, then the XML
object
>>can take a while to load and parse this data in.
>>
>>If this is the case, can you break the data up into smaller chunks ?
>>
>>Also what are you doing to 'search' the XML once it's loaded. If you
>>haven't already done so look at Xpath - makes searching so much
easier.
>>
>>Finally, if there is a server side tier to this, think about
>>FlashRemoting - it will show a significant performance improvement for
>>you.
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Ing.
>>Mario Falomir
>>Sent: 31 January 2006 17:34
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] XML Driven Application Driving me crazy :)
>>
>>
>>Hi, I need some advice from you guys :) I have an XML Driven FLash
APP,
>>basically it's a tool that displays charts and data in grids,
>>containers, etc...that my client will handout in CDs. So at the
>>beginning of the development process I thought XML would suit
perfectly
>>in the purpose of this app. But it happened that the DB used to
generate
>>the apporpiate XML files that my app consume had grown amazingly so
>>eventually my app (exclusively the part that searches for an specific
>>registry entry) turns very slow and sometimes (rarely but happens) it
>>crashes due to the exhaustive loops and interations i do in order to
the
>>search/display data of an specific registry and filtering functions.
>>
>>So i thouhgt, upon your experience,  to ask how would you do to
optimize
>>this thing or what its the best way to do the queries to an XML in
order
>>smooth things a little bit more :) Or what approaches (or guidelines )
>>do you use when you have to develop an app. that will have XML to
serve
>>as its DB. Do you load everysingle XML at once ? on demand ? etc ?
>>
>>Thanks in advanced!
>>Mario
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to