public XmlAttrib FindAttrib(string name) { unsafe { if (CoreObject.Pointer == IntPtr.Zero) { return(null); } var attr = XmlSDK.RapidXmlNodeA_first_attribute(CoreObject, name); if (attr.Pointer == IntPtr.Zero) { return(null); } return(new XmlAttrib(attr)); } }
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); } }