Updating XML with PHP

How would I use PHP [and an HTML form] to update an XML document?