Microsoft XML 2.5 SDK


 

url Property

[This is preliminary documentation and subject to change.]

Contains the URL of the XML document containing the last error.

Syntax

strValue = oXMLDOMParseError.url

Remarks

String. The property is read-only.

Example

The following example attempts to load an XML document. If it encounters a parse error, it displays the URL of the document containing the error:

Dim xmlDoc
Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.async = False
xmlDoc.load("c:\books.xml")
If xmlDoc.parseError.errorcode <> 0 Then
   MsgBox xmlDoc.parseError.url
Else
  MsgBox xmlDoc.documentElement.xml
End If

Applies To

XMLDOMParseError