Update xml from textbox?

Hi - can anyone tell me how i can update an xml file when the user types a value into a textbox? The xml will then update a database. Thanks for the help!!