Statement Type |
Syntax |
Remarks |
insert statement |
insert src-node-expr
into trg-node-expr;
insert src- node-expr
before trg-node-expr;
insert src- node-expr
after trg-node-expr; |
Copied the source node
from one location to another. insert
into statement
copies the source node as the last child node of target node. insert before
statement copies the source
node before the target node. And insert
after statement copies
the source node after the target node. Both src-node-expr
and trg-node-expr
should evaluate to a single node. (We'll support a sequence of source
nodes in next beta release). The source node can be in different
document from the target node. |
set attribute statement |
set path/@attr
= value; |
The last step of the
path must be a qualified name preceded
by attribute axis. If the attribute with the qualified name does no
exist, it is created with the given value; otherwise, the attribute
node is updated to the given value. |
move statement |
move src - node-expr
into trg-node-expr;
move src- node-expr
before trg-node-expr;
move src - node-expr
after trg-node-expr; |
Similar to insert
statement. But instead of copying, the source node is moved to new
location. |
delete statement |
delete node-expr; |
The node is deleted. |
rename statement |
rename node-expr
as expr; |
If the node is an
attribute or element, it is renamed to the specified new name. |