adding attributes to a node
775682Jul 24 2011 — edited Jul 28 2011Hi,
I would like to add attributes to a node with an xquery. I've found (not easily) that I can use the following query to add one attribute :
" insert node attribute id {"10"} into collection()/root/parent/child "
However I can't find a way to add more than one attribute. Is there a way to update an attribute if it exists, or add it if not ?
thanks