Click or drag to resize

QueryGetText Method

Extract text from the first matching XML file node with options.

Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version: 1.0.1.29962 (1.0.1.0)
Syntax
public static string GetText(
	string xmlFile,
	string query,
	QueryOpts opts = QueryOpts.Default
)

Parameters

xmlFile  String
Name of XML file or string containing XML data.
query  String
XPath 1.0 expression to select a node. This must evaluate to a node or node set.
opts  QueryOpts  (Optional)
Formatting options for output.

Return Value

String
Extracted text
Exceptions
ExceptionCondition
XmlsqErrorExceptionBad input: missing file or invalid XML or invalid XPath.
See Also