public unsafe bool RemoveChildElement(XmlElement child) { var rt = 0; var ptr = new void*[] { (void*)(IntPtr)child, &rt, }; fixed (void* ptrptr = ptr) NativeMethods.MQXmlElem_Value(this, (int)Xmlelem.RemoveChildElement, (IntPtr)ptrptr); return rt != 0; }
public unsafe XmlElement NextChildElement(XmlElement child) { var ptr = new void*[] { null, (void*)(IntPtr)child, null, }; fixed (void* ptrptr = ptr) NativeMethods.MQXmlElem_Value(this, (int)Xmlelem.NextChildElement, (IntPtr)ptrptr); return (IntPtr)ptr[2]; }
public unsafe XmlElement NextChildElement(string name, XmlElement child) { var val = ToUtf8(name); fixed (byte* valptr = val) { var ptr = new void*[] { valptr, (void*)(IntPtr)child, null, }; fixed (void* ptrptr = ptr) NativeMethods.MQXmlElem_Value(this, (int)Xmlelem.NextChildElement, (IntPtr)ptrptr); return (IntPtr)ptr[2]; } }