This is a common misunderstanding of the structure of XML and is not unique to Xojo. The xml snippet
If…Then
looks like one node with a value of “If…Then”, but in fact it is 2 nodes: a node named “name” that has a child node (a text node) with no name and a value of “If…Then”. The reason for this extra node is that can be
The node must be consistent either way, regardless of how complex its children may be. In your mind, convert the shorthand (human readable) notation of <name>If..Then</name> to the way the machine reads it: