Share via


AddErrorNode (server-side)

Use this routine to add an ERROR element to the specified XML document.

Definition

AddErrorNode(byRef xmlDOMDoc,

             byVal sId,

             byVal sSource,

             byVal sDetail)

Parameters

xmlDOMDoc

A reference to the XML DOMDocument object to which the ERROR element is added.

sId

A string containing a value for the id attribute of the element.

sSource

A string containing a value for the source attribute of the element.

sDetail

An HTML string containing the error details, assigned as the innerHTML of the element.

Return Value

None.

Remarks

This routine adds a node of the form:

<ERROR id="id" source="source">detail</ERROR>

This is the format expected by client routine ShowXMLNodeErrors.

This routine is available in the include file HTTPXMLUtil.asp.

See Also

Server-Side Routines

AddCDATANode (server-side)

AddItemNode (server-side)

AddWarningNode (server-side)

xmlGetXMLDOMDoc (server-side)

Client-Side Routines

ShowXMLNodeErrors (client-side)


All rights reserved.