示例#1
0
 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));
     }
 }
示例#2
0
        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));
            }
        }