nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

Microsoft XML Core Services (MSXML) 4.0 - DOM Reference

errorCode Property

Contains the error code of the last parse error.

[Script]

Script Syntax

lValue = oXMLDOMParseError.errorCode;

Example

The following script example attempts to load an XML document. If it encounters a parse error, it displays the error code.

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
xmlDoc.async = false;
xmlDoc.load("books.xml");
if (xmlDoc.parseError.errorCode != 0) {
   alert(xmlDoc.parseError.errorCode);
} else {
   alert(xmlDoc.documentElement.xml);
}
[Visual Basic]

Visual Basic Syntax

lValue = oXMLDOMParseError.errorCode

Example

The following Microsoft® Visual Basic® example attempts to load an XML document. If it encounters a parse error, it displays the error code.

Dim xmlDoc As New Msxml2.DOMDocument40
xmlDoc.async = False
xmlDoc.Load ("books.xml")
If xmlDoc.parseError.errorCode <> 0 Then
   MsgBox xmlDoc.parseError.errorCode
Else
  MsgBox xmlDoc.documentElement.xml
End If
[C/C++]

C/C++ Syntax

HRESULT get_errorCode(
    long *errorCode);

Parameters

errorCode [out, retval]
The error code returned in a decimal value.

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. It returns the error code in decimal.

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Applies to: IXMLDOMParseError


Download de SDK