public static XmlHolder NewXMLHolder(System.String name, System.String value) { unsafe { var xmlHolder = new XmlHolder(); xmlHolder.mCoreObject = XmlSDK.RapidXmlA_NewXmlHolder(); var root = XmlSDK.RapidXmlNodeA_allocate_node(xmlHolder.CoreObject, name, ""); XmlSDK.RapidXmlA_append_node(xmlHolder.CoreObject, root); return(xmlHolder); } }
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); } }