XMLNode.Compare

From Xojo Documentation

Method

XMLNode.Compare(NodeToCompare as XMLNode) As Integer

Supported for all project types and targets.

Compares two nodes, which must both have the same parent. Returns an Integer that works like StrComp.

Notes

The two nodes are compared using their string contents.

  • If XMLNode < NodeToCompare it returns -1
  • If XMLNode = NodeToCompare it returns 0
  • If XMLNode > NodeToCompare it returns 1

If you need to compare nodes with different parents, use the StrComp function on the XMLNode.ToString value.