Skip to content

ErrorItemNode - cXMLDOMParseError

Returns a new cXMLDOMParseError object for the passed item

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
iItem Integer Item to return cXMLDOMParseError object for

Syntax

Function ErrorItemNode Integer iItem Returns Handle

Call Example

Get ErrorItemNode iItem to HandleVariable

Description

Returns a new cXMLDOMParseError object for the passed item. You must destroy this object when you are done with it.

Sample

Get phXMLErrorObject of hoDoc to hoParseErrorObject
Get piErrorCount of hoParseErrorObject to iCount        
For i from 0 to (iCount-1)
    Get ErrorItemNode of hoParseErrorObject i to hoErrorItem
    Get psReason of hoErrorItem to sReason
    Showln sReason
    Get psErrorXPath of hoErrorItem to sXPath
    Showln sXPath
    Send Destroy of hoErrorItem
Loop

Send Destroy of hoParseErrorObject

Return Value

cXMLDOMParseError object handle