UtilitiesEvaluateXPath Method |
Evaluates the XPath expression in a given XML Document.
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static string EvaluateXPath(
string xmlDocument,
string xpath
)
Public Shared Function EvaluateXPath (
xmlDocument As String,
xpath As String
) As String
public:
static String^ EvaluateXPath(
String^ xmlDocument,
String^ xpath
)
static member EvaluateXPath :
xmlDocument : string *
xpath : string -> string
Parameters
- xmlDocument
- Type: SystemString
The XML document. - xpath
- Type: SystemString
The XPath Expression
Return Value
Type:
String
The value extracted from the XML document and an given XPath
Exceptions Exception | Condition |
---|
XmlException | The XML document used for XPath evaluation is empty. If you are using Assertions or Value Extraction, make sure the target test step is executed. |
See Also