wwXML::AddDomNode

Adds a new child node to an existing XMLDOM Node. The new new node is inserted as a child node.

You can specify a value as a string. Pass null or .F. if you want to create an empty element.

o.AddDomNode(loNode,lcName,lcValue,lcNameSpace)

Return Value

The new node

Parameters

loNode
The parent node underneath which the new node will be inserted.

lcName
The element name of the new node.

lcValue
A string value to assign to the node. You can use FoxValueToXmlValue to create properly formatted XML values. Pass NULL or .F. to create an empty node.

lcNameSpace
Optional XML namespace to apply to the element.

Remarks

Requires that the .oXml property is set with a DOM instance. Either load with Load, LoadXml, LoadUrl or assign the DOM instance to .oXml prior to calling this method.


See also:

Class wwXML

© West Wind Technologies, 2023 • Updated: 02/18/08
Comment or report problem with topic