<?xml version="1.0" encoding="UTF-8"?>
<xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate">

    <!-- update a node value -->
    <xu:update select="//address[lname |= 'Hyde']/fname/text()">Toby</xu:update>
    
    <!-- update attribute -->
    <xu:update select="//address[lname |= 'jekyll']/email/@type">home</xu:update>

</xu:modifications>    