Xmlsq 1.0.0
basXmlsq.bas File Reference
The VBA/VB6 interface to diXmlsq.dll.
- xmlsqCount
- Compute the count for the XPath query. More...
- xmlsqFullQuery
- Execute full XPath 1.0 query. More...
- xmlsqGenCompileTime
- Get date and time the core DLL module was last compiled. More...
- xmlsqGenModuleName
- Get full path name of core DLL module. More...
- xmlsqGenPlatform
- Get platform for which the core DLL is compiled. More...
- xmlsqGenVersion
- Get version number of core DLL. More...
- xmlsqGetText
- Extract text from the first matching XML node. More...
xmlsqCount
Compute the count for the XPath query.
Syntax
[VBA]
Public Function xmlsqCount ( _
szXmlFile As String, _
szQuery As String, _
Optional nOptions As Long = 0 _
) As Long
Parameters
- szXmlFile
- Name of XML file or string containing XML data.
- szQuery
- XPath 1.0 expression to select a node. This must evaluate to a node or node set.
- nOptions
- For future use. Specify zero (0).
Return Value
Long: The integer value of count(query)
or a negative error code.
xmlsqFullQuery
Execute full XPath 1.0 query.
Syntax
[VBA]
Public Function xmlsqFullQuery ( _
szXmlFile As String, _
szQuery As String, _
Optional nOptions As Long = 0 _
) As String
Parameters
- szXmlFile
- Name of XML file or string containing XML data.
- szQuery
- XPath 1.0 expression.
- nOptions
- Option flags. Add with the 'Or' operator.
Return Value
String: Result of XPath query as a string, or a string beginning with "**ERROR:" if an error occurred.
xmlsqGenCompileTime
Get date and time the core DLL module was last compiled.
Syntax
[VBA]
Public Function xmlsqGenCompileTime() As String
Return Value
String: String containing date and time.
xmlsqGenModuleName
Get full path name of core DLL module.
Syntax
[VBA]
Public Function xmlsqGenModuleName() As String
Return Value
String: String containing path name.
xmlsqGenPlatform
Get platform for which the core DLL is compiled.
Syntax
[VBA]
Public Function xmlsqGenPlatform() As String
Return Value
String: String containing Win32
or Win64
.
xmlsqGenVersion
Get version number of core DLL.
Syntax
[VBA]
Public Function xmlsqGenVersion() As Long
Return Value
Long: Version number as an integer in form Major*10000 + Minor*100 + Release
. For example, version 2.10.3 would return 21003.
xmlsqGetText
Extract text from the first matching XML node.
Syntax
[VBA]
Public Function xmlsqGetText ( _
szXmlFile As String, _
szQuery As String, _
Optional nOptions As Long = 0 _
) As String
Parameters
- szXmlFile
- Name of XML file or string containing XML data.
- szQuery
- XPath 1.0 expression to select a node. This must evaluate to a node or node set.
- nOptions
- Option flags. Add with the 'Or' operator.
Return Value
String: Extracted text, or a string beginning with "**ERROR:" if an error occurred.