8 Replies Latest reply on Jul 28, 2011 3:52 PM by 775682

    adding attributes to a node

    775682
      Hi,

      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