As you've probably found out by now, XQuery is currently readonly, they are still working on the INSERT/UPDATE/DELETE facility. I have no idea how you'd go about editing a node without loading the whole document. However I'd be interested to know if you come up with anything...