Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains the absolute file position where the error occurred.
Script Syntax
lValue = oXMLDOMParseError.filepos;
Example
The following script example attempts to load an XML document. If it encounters a parse error, it displays the value of the filepos
property.
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode != 0) {
WScript.Echo(xmlDoc.parseError.filepos);
} else {
WScript.Echo(xmlDoc.documentElement.xml);
}
Visual Basic Syntax
lValue = oXMLDOMParseError.filepos
C/C++ Syntax
HRESULT get_filepos(
long *filePosition);
Parameters
filePosition
[out, retval]
The absolute file position where the error occurred.
C/C++ Return Values
S_OK
The value returned if successful.
S_FALSE
The value returned if no error occurred.
Remarks
Long integer. The property is read-only.
Versioning
Implemented in:
MSXML 3.0, MSXML 6.0