The .NET interface to Xmlsq.
Get date and time the core diXmlsq DLL module was last compiled.
public static string CompileTime()
Public Shared Function CompileTime As String
Get full path name of the current process's core library DLL.
public static string ModuleName()
Public Shared Function ModuleName As String
Return the version of this .NET module.
public static string NetVersion()
Public Shared Function NetVersion As String
Get platform on which the core diXmlsq DLL is running.
public static string Platform()
Public Shared Function Platform As String
Get version number of core diXmlsq DLL.
public static int Version()
Public Shared Function Version As Integer
Compute the count for the XPath query.
public static int Count( string xmlFile, string query )
Public Shared Function Count ( _ xmlFile As String, _ query As String _ ) As Integer
Exception | Condition |
---|---|
Xmlsq.XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Perform a full XPath query on the XML input.
public static string FullQuery( string xmlFile, string query )
Public Shared Function FullQuery ( _ xmlFile As String, _ query As String _ ) As String
Exception | Condition |
---|---|
Xmlsq.XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Perform a full XPath query on the XML input with options.
public static string FullQuery( string xmlFile, string query, Query.Opts opts )
Public Shared Function FullQuery ( _ xmlFile As String, _ query As String, _ opts As Query.Opts _ ) As String
Exception | Condition |
---|---|
Xmlsq.XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Extract text from the first matching XML file node.
public static string GetText( string xmlFile, string query )
Public Shared Function GetText ( _ xmlFile As String, _ query As String _ ) As String
Exception | Condition |
---|---|
Xmlsq.XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Extract text from the first matching XML file node with options.
public static string GetText( string xmlFile, string query, Query.Opts opts )
Public Shared Function GetText ( _ xmlFile As String, _ query As String, _ opts As Query.Opts _ ) As String
Exception | Condition |
---|---|
Xmlsq.XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Options for queries.
public enum Opts
Public Enumeration Opts
Member name | Description | |
---|---|---|
Default | Use default options. | |
Asciify | Asciify the output as XML character references [default=UTF-8-encoded]. | |
Raw | Output nodeset in raw format [default=prettify]. | |
Trim | Trim leading and trailing whitespace (and collapse whitespace for an attribute value). |