I'm exploring parts of syntax of KML and GPX where elements are optional.
Until now there have been several candidates that I wanted to process, so I have worked my way through a XMLNodeList of children. But now I want to process a <name> child node if present but no other children.
So it seems overkill to build a XMLNodeList when I can just get the one I want by GetChild2("name"). But the problem I have is knowing if such a node was found.
(The same would apply if looking for an attribute; it just so happens that the ones I want are all mandatory.)
Short of using exception handling, how to determine if a node is present?
Mike.