It is a mistake of the documentation,
set xpath {/cmas2d_customlib_data/condition[@n=‘Point_Weight’]/group[@name=‘Point Weight Auto1’]/value[@n=‘Weight’]}
set xml_node [$document selectNodes $xpath]
in this case the attribute of the node ‘group’ must be ‘n’, not ‘name’
group[@name=‘Point Weight Auto1’]
→
group[@n=‘Point Weight Auto1’]
Now we have fixed this documentation:
Then $document selectNodes $xpath was not selecting any DOM node because the wrong xpath
In any case, you can always examine the current DOM to know the xpath with something like
-np- W [[$::gid_groups_conds::doc documentElement] asXML]
and you will see it as XML, this in your model:
<cmas2d_customlib_data version=“1.0”>