<?xml version="1.0"?> 
<xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">
<xupdate:remove select="/memory[1]/comment()[1]" />

<xupdate:append select="/memory[1]" >  <xupdate:comment>new comment</xupdate:comment>
</xupdate:append>

<xupdate:update select="/memory[1]/comment()[1]" >new comment</xupdate:update>

<xupdate:insert-after select="/memory[1]/comment()[1]" >  <xupdate:text>and new text</xupdate:text>
</xupdate:insert-after>

<xupdate:rename select="/memory[1]/mailbox[1]" >box</xupdate:rename>

<xupdate:insert-after select="/memory[1]/box[1]" >  <xupdate:element name="beep">  </xupdate:element>
</xupdate:insert-after>

<xupdate:insert-after select="/memory[1]/email_addr[1]" >  <xupdate:text>insert test</xupdate:text>
</xupdate:insert-after>

<xupdate:insert-after select="/memory[1]/junkbuster-method[1]" >  <xupdate:comment>update comment</xupdate:comment>
</xupdate:insert-after>

<xupdate:insert-after select="/memory[1]/spoken-languages[1]" >  <xupdate:element name="test">    <!-- this is an append test -->
hoye!
  </xupdate:element>
</xupdate:insert-after>

<xupdate:insert-after select="/memory[1]/test[1]" >  <xupdate:text>and some new text</xupdate:text>
</xupdate:insert-after>

<xupdate:rename select="/memory[1]/box[1]/@path" >pathe</xupdate:rename>

<xupdate:update select="/memory[1]/email_addr[1]/text()[1]" >syt@logilab.org</xupdate:update>

<xupdate:rename select="/memory[1]/junkbuster-method[1]/@value" >val</xupdate:rename>

<xupdate:append select="/memory[1]/junkbuster-method[1]"  child="first()" >  <xupdate:element name="newson">    <xupdate:attribute name="attr">bip</xupdate:attribute>
    <xupdate:attribute name="machin">7776</xupdate:attribute>
  </xupdate:element>
</xupdate:append>

<xupdate:append select="/memory[1]/spoken-languages[1]" >  <xupdate:attribute name="new">new attribute</xupdate:attribute>
</xupdate:append>

<xupdate:insert-after select="/memory[1]/spoken-languages[1]/language[2]" >  <xupdate:element name="language">    <xupdate:attribute name="code">it</xupdate:attribute>
    <xupdate:attribute name="name">italian</xupdate:attribute>
  </xupdate:element>
</xupdate:insert-after>

<xupdate:update select="/memory[1]/server-socket[1]/@port" >7rm -rf tm776</xupdate:update>

<xupdate:update select="/memory[1]/server-socket[2]/@port" >7797</xupdate:update>

<xupdate:remove select="/memory[1]/@attr" />

<xupdate:remove select="/memory[1]/spoken-languages[1]/language[1]" />

<xupdate:remove select="/memory[1]/spoken-languages[1]/language[3]" />

</xupdate:modifications>