예제 #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];
			}
		}