hai frnds

i hav an xml document like this.

<userinformation>
<userid>adm1</userid>
</userinformation>

i wants to edit this xml file using Dom method[insert new userid tag with new value],how?