public XmlAttrib AddAttrib(string name) { unsafe { var attr = XmlSDK.RapidXmlNodeA_allocate_attribute(mHolder.CoreObject, name, ""); XmlSDK.RapidXmlNodeA_append_attribute(CoreObject, attr); return(new XmlAttrib(attr)); } }
public XmlAttrib AddAttrib(string name, string value) { unsafe { //if (name == null) // name = ""; //if (value == null) // value = ""; var attr = XmlSDK.RapidXmlNodeA_allocate_attribute(mHolder.CoreObject, name, value); XmlSDK.RapidXmlNodeA_append_attribute(CoreObject, attr); return(new XmlAttrib(attr)); } }