The .NET interface to Xmlsq.
| Class | Description |
|---|---|
| Gen | Get general diagnostic info about the core diXmlsq DLL. |
| Query | Perform simple and full XPath 1.0 queries on an XML document. |
| XmlsqErrorException | Xmlsq custom exception. |
| Enumeration | Description |
|---|---|
| Query.Opts | Options for queries. |
Get general diagnostic info about the core diXmlsq DLL.
System.Object
Xmlsq.Gen
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public class GenThe Gen type exposes the following members.
| Name | Description |
|---|---|
| CompileTime | Get date and time the core diXmlsq DLL module was last compiled. |
| ModuleName | Get full path name of the current process’s core library DLL. |
| NetVersion | Return the version of this .NET module. |
| Platform | Get platform on which the core diXmlsq DLL is running. |
| Version | Get version number of core diXmlsq DLL. |
Get date and time the core diXmlsq DLL module was last compiled.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static string CompileTime()String
Date and time value.
Get full path name of the current process’s core library DLL.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static string ModuleName()String
Path name.
Note C:\WINDOWS\SYSTEM32\ may be returned even if it is
really C:\WINDOWS\SYSWOW64\.
Return the version of this .NET module.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static string NetVersion()String
Version string, e.g. "01.02.03"
Get platform on which the core diXmlsq DLL is running.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static string Platform()String
“Win32” or “Win64”
Get version number of core diXmlsq DLL.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static int Version()Int32
Version number in form Major * 10000 + Minor * 100 + Release
E.g. version 1.2.3 returns 10203
Perform simple and full XPath 1.0 queries on an XML document.
System.Object
Xmlsq.Query
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public class QueryThe Query type exposes the following members.
| Name | Description |
|---|---|
| Count | Compute the count for the XPath query. |
| FullQuery | Perform a full XPath query on the XML input with options. |
| GetText | Extract text from the first matching XML file node with options. |
Compute the count for the XPath query.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static int Count(
string xmlFile,
string query
)Name of XML file or string containing XML data.
XPath 1.0 expression. This must evaluate to a node or node set.
Int32
The integer value of count(query).
| Exception | Condition |
|---|---|
| XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Perform a full XPath query on the XML input with options.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public static string FullQuery(
string xmlFile,
string query,
Query.Opts opts = Query.Opts.Default
)Name of XML file or string containing XML data.
XPath 1.0 expression.
Formatting options for output.
String
String containing result of query.
| Exception | Condition |
|---|---|
| XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
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)
public static string GetText(
string xmlFile,
string query,
Query.Opts opts = Query.Opts.Default
)Name of XML file or string containing XML data.
XPath 1.0 expression to select a node. This must evaluate to a node or node set.
Formatting options for output.
String
Extracted text
| Exception | Condition |
|---|---|
| XmlsqErrorException | Bad input: missing file or invalid XML or invalid XPath. |
Xmlsq custom exception.
System.Object
System.Exception
Xmlsq.XmlsqErrorException
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public class XmlsqErrorException : ExceptionThe XmlsqErrorException type exposes the following members.
| Name | Description |
|---|---|
| XmlsqErrorException() | Xmlsq query failed - invalid input. |
| XmlsqErrorException(String) | Xmlsq query failed - invalid input. |
Xmlsq query failed - invalid input.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
| Name | Description |
|---|---|
| XmlsqErrorException() | Xmlsq query failed - invalid input. |
| XmlsqErrorException(String) | Xmlsq query failed - invalid input. |
public XmlsqErrorException(
string message
)Message string
XmlsqErrorException
Class
Xmlsq Namespace
Options for queries.
Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version:
1.0.1.29962 (1.0.1.0)
public enum 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). |
Created: 2025-10-20 16:39:19
Copyright (C) 2025 D.I. Management Services Pty Ltd t/a CryptoSys https://cryptosys.net