Error Handling
Use the IsNull property to verify if the XmlNode returned by a method is a valid node. In the following example, a particular node is checked to see if it has another node after it. If it doesn't, a node is added.
Local XmlNode &usernode;
Local string &userName;
&usernode = &inXMLDoc.DocumentElement.FindNode("/Request/Company/Location/User");
If Not (&MyNode.IsNull) Then
&userName = &usernode.NodeValue;
Else
/* Do error processing */
End-If;