Click or drag to resize

XMLDocOpenFile Function (String, Usual)

X#
Open an XML document.

Namespace:  XSharp.XPP
Assembly:  XSharp.XPP (in XSharp.XPP.dll) Version: 2.21
Syntax
 FUNCTION XMLDocOpenFile(
	cFileName AS STRING,
	nErrHandle OUT USUAL
) AS INT64
Request Example View Source

Parameters

cFileName
Type: String
Name of an XML file to be parsed.
nErrHandle
Type: Usual
Pass a variable by reference which receives an error handle if errors were recorded.

Return Value

Type: Int64
Returns a non-zero numeric handle for the document, or 0 if there are not enough system resources for the parser, or when the file cannot be opened, read or parsed. The handle returned by this function must be used in subsequent calls to other XMLDoc..() functions.
Remarks
XMLDocOpenFile() opens a new XML document. It allocates system resources for the parser, opens and reads the file and parses it contents. While parsing a document, a tree is build by the parsing engine.
See Also