HasXPath Method
Determines whether a specific element exists in the document.
Syntax
[VB.NET] Public Function HasXPath(ByVal XPath As String) As Boolean
[C#] public bool HasXPath(string XPath);
Remarks
This method determines whether a particular XPath exists within the document. This may be used to check if a path exists before setting it via XPath.
This method returns True if the xpath exists, False if not.
See XPath for details on the XPath syntax.
NOTE: This method has a corresponding asynchronous version (HasXPathAsync) for use in the Xamarin environment.