Flash to xml

I know how to fetch the data from xml… but i dont know How to save a data from flash to xml in runtime? example in e learning if a student scores 70% mark it should save in the database using xml and the data should update when he do more and more … can u help me please?