I have a single XML file that will most likely remain small for the most part.

Heres the structure:

<?xml version="1.0" encoding="utf-8"?>
<Defigo>
<Server host="domain.com" type="Web" />
<Server host="127.0.0.1" type="Database" />
</Defigo>

I have a form that has 2 textboxes. serverHost and serverType. I'm trying to add a new entry like this:
<Server host="domain.com" type="Web" />

when I click buttonCreate.

I'm able to read the nodes just fine, but writing is a whole new story.