Click or drag to resize

QueryCount Method

Compute the count for the XPath query.

Namespace: Xmlsq
Assembly: diXmlsqNet (in diXmlsqNet.dll) Version: 1.0.1.29962 (1.0.1.0)
Syntax
public static int Count(
	string xmlFile,
	string query
)

Parameters

xmlFile  String
Name of XML file or string containing XML data.
query  String
XPath 1.0 expression. This must evaluate to a node or node set.

Return Value

Int32
The integer value of count(query).
Exceptions
ExceptionCondition
XmlsqErrorExceptionBad input: missing file or invalid XML or invalid XPath.
See Also