

Therefore, if you have no experience with DOM APIs, I would recommend you to take a look to this tutorial :
https://www.w3schools.com/js/js_htmldom.asp

Although it is about the JavaScript HTML DOM API, and not the Gambas XML DOM API, they have a lot in common, so you might find it helpful in understanding gb.xml. 

Now, have some code (not in order, as some are closely related) :-)

    How to delete an attribute and value in an existing XML file in an element?
    How to insert an attribute and its value into a (specific) element in an existing XML file?
    How do I change an attribute -> attribute value in an existing XML file?
    How to change an attribute -> attribute name in an existing XML file?

https://gambas-playground.proko.eu/?gist=f17a0cd60f97c6242ce81f00fd0d97e2

    How to delete the text in an existing XML file in an element?
    How do I change an element -> text in an existing XML file?

https://gambas-playground.proko.eu/?gist=3a3fd86a80d3c6207f5350ac3469cf39

    How do I change an element -> element name in an existing XML file?

https://gambas-playground.proko.eu/?gist=a86ee7350648293efa4b4809dd5402bb

    How to insert an element in a (specific) location in an existing XML file?

https://gambas-playground.proko.eu/?gist=a54770310663b48cb35aec0e458cf0c5

    How to delete an element in an existing XML file?

https://gambas-playground.proko.eu/?gist=70660470494c5a2c696eadb3605b9f23

Hope these snippets will help you. :-)

Regards,
-- 
Adrien Prokopowicz
