例如,如果我有两个对象名单,我想将它们付诸使用的XElement,并通过它把对象试图循环的XML文件的第二个对象物品进入第一个Xelement名称,因为它们具有相同的Xelement标记名。 我怎么能告诉一个的XElement,它需要在某种独特之处?因此它不会将第二个对象放在第一个人物标记中,而是放在第二个对象中。 XML输出的 List<People> people -> has two ite
我有“的IEnumerable”所有相同元素的列表:“elem1”,我得到的 IEnumerable <XElement> childList =
from el in sessionXML.DescendantsAndSelf().Elements("elem1")
select el;
的childList: <elem1 att1= "..." att
Dim soapEnvelope As XElement = New XElement(soap + "Envelope",
New XAttribute(XNamespace.Xmlns + "soap", soap.NamespaceName),
New XAttribute(soap + "encodingStyle", "http:/