示例#1
0
        public List <XmlAttrib> GetAttribs()
        {
            unsafe
            {
                var attrList = new List <XmlAttrib>();

                if (CoreObject.Pointer == IntPtr.Zero)
                {
                    return(attrList);
                }

                for (var attr = XmlSDK.RapidXmlNodeA_first_attribute(CoreObject, null);
                     attr.Pointer != IntPtr.Zero;
                     attr = XmlSDK.RapidXmlAttribA_next_sibling(attr))
                {
                    var nd = new XmlAttrib(attr);
                    attrList.Add(nd);
                }

                return(attrList);
            }
        }