You can try compressing the xml file first and decompressing it when loaded - I've used this to good effect and see something like a 10x reduction in the filesize - This blog covers the technique http://www.ghostwire.com/blog/archives/as3-saving-xml-as-binary/
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Flex Killer Sent: 09 December 2009 11:45 To: [email protected] Subject: [flexcoders] Best way to load XML file Dear All, I have a 2 MB XML file locally and if I try to import that file using <mx:XML id="testId" source="StudentData.xml"/> It is loading all the data at compile time ( In fact flex builder is throwing memory exception) I loaded the same file using HTTPService and It is taking significant amount of time to load the data in production environment . Could some body suggest a better way to load this? ( I don't have an option of loading this to database and reading it from there) Regards Kiran . ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________

