Hi,
The posted code above was a great help. I transformed it into C# in a VS2003 project and thought it might be helpful:
Thanks!
// CUSTOM Method: SetNil
// Needed because of the xml and form validation rules on certain fields like DateTime, Boolean, etc.
public void SetNil(IXMLDOMNode node)
{
if( node.text == "")
{ return; }
IXMLDOMElement nilElement;
IXMLDOMAttribute nilAttribute;
// Create an element and an attribute for xsi:nil with the proper namespace.
nilElement = (IXMLDOMElement)node;
nilAttribute = (IXMLDOMAttribute)node.ownerDocument.createNode((int)DOMNodeType.NODE_ATTRIBUTE,"xsi:nil",xsiNS);
nilAttribute.text = "true";
// The order is important
node.text = String.Empty;
nilElement.setAttributeNode(nilAttribute);
}