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)
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.