public XmlNode AddNode(string name, string value, XmlHolder holder) { unsafe { if (CoreObject.Pointer == IntPtr.Zero) { return(null); } var node = XmlSDK.RapidXmlNodeA_allocate_node(holder.CoreObject, name, value); XmlSDK.RapidXmlNodeA_append_node(CoreObject, node); var result = new XmlNode(node); if (holder == null) { result.mHolder = mHolder; } else { result.mHolder = holder; } return(result); } }