Creating an XML login for AS3

Im wondering how I could create a login script that would save all users, passwords, and theyre data(scores, play time, etc) to an XML file. I am very new to XML and cant seem to find anything about this on the internet. I plan on saving this XML file on my website and having the swf load it from the website. Can anyone please help me? or tell me an alternate method for this?