FlashMX2004 How can i Write XML into a file , save it to hard disk

Hello Friend

Help me in writing XML File on hard disk … i make a xml object on runtime … menupulat it and then i want it to save on hard disk of the client … i want to used this for both online and offline flash aplication…

Thanks…