Add/Replace xmlnode in an xmldocument

I have an xmldocument that I need to update.
That means adding a node, updating or deleting an existing one.

My problem is trying to figure out where the node is in the document, (If it exists), and figuring out the node to attach a new node to.

So I think I need to be able to identify the parent node for adding and I need to find the existing node to replace it.

To find your node use XQL. Once you’ve found your node use the parent property to use for adding/deleting.

:slight_smile: ! That’s exactly it!
And it returns an NodeList