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