1variable $x:=<y><a/></y>;
2
3insert node <b/> into $x/a;
4
5rename node $x/a/b as "a";
6
7<first>
8{
9$x//a
10}
11</first>
12