AddItemNode (client-side)

Use this routine to add an item element to the specified XML document using the passed parameters.

Definition

AddItemNode(byRef xmlDoc,

            byVal sName,

            byVal sValue)

Parameters

xmlDoc

A reference to the XML DOMDocument object to which the new item element will be added.

sName

A string containing the value to be assigned to the name attribute of the new item element.

sValue

A string containing the value to be assigned to the value attribute of the new item element.

Return Value

None.

Remarks

The string version of the added element has the following form:

<item name="sName" value="sValue"/>

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

There is a functionally equivalent version of this routine defined for server-side use in the file HTTPXMLUtil.asp. Note that this other routine does not make use of the xmlDoc parameter, but instead adds the CDATA node to a globally accessible XML document.

See Also

Client-Side Routines

AddCDATANode (client-side)

xmlGetXMLDOMDoc (client-side)

Server-Side Routines

AddItemNode (server-side)


All rights reserved.