日期:2014-05-18 浏览次数:20965 次
<result> <A> </x> </xx> </A> <A> <x>what</x> <xx>who</xx> </A> </result>
XmlDocument xml = new XmlDocument(); xml.Load(@"E:\xmlxml.xml"); XmlNode root = xml.SelectSingleNode("/result"); XmlNode node = root.SelectSingleNode("A[position()=1]"); root.RemoveChild(node); xml.Save(@"E:\xmlxml.xml");