Extract text from the first matching XML file node with options.
Namespace: XmlsqAssembly: diXmlsqNet (in diXmlsqNet.dll) Version: 1.0.1.29962 (1.0.1.0)
Syntaxpublic static string GetText(
string xmlFile,
string query,
QueryOpts opts = QueryOpts.Default
)
Public Shared Function GetText (
xmlFile As String,
query As String,
Optional opts As QueryOpts = QueryOpts.Default
) As String
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
StringExtracted text
Exceptions
See Also