Hi,
I am trying to copy attributes of one node to another:

copy $x := <test a="b" c="d"></test>,
  $y := parse-xml('<o a="x" c="y"></o>')
modify (
  delete nodes $x/@*,
  insert nodes $y/@* into $x
)
return $x

Unfortunately, the resulting $x is an empty <test/> node. I expected it to
have the attributes of the parsed node.
Am I using parse-xml() properly?

Thanks!

Reply via email to