|
|
|
@ -20,11 +20,28 @@ namespace XmlTest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XmlNodeList childnodes = xRoot.XPath2SelectNodes("//Object[ends-with(@Name,'_oper')], //Object[ends-with(@Name,'_step')]"); |
|
|
|
|
if (childnodes != null) |
|
|
|
|
foreach (XmlNode n in childnodes) |
|
|
|
|
XmlNodeList mySearch = xRoot.XPath2SelectNodes("//Object[ends-with(@Name,'_oper')]"); |
|
|
|
|
if (mySearch != null) |
|
|
|
|
foreach (XmlNode n in mySearch) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
Console.WriteLine(n.SelectSingleNode("Attribute").OuterXml); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//XmlNodeList childnodes = xRoot.XPath2SelectNodes("//Object[ends-with(@Name,'_oper')], //Object[ends-with(@Name,'_step')]"); |
|
|
|
|
//if (childnodes != null) |
|
|
|
|
// foreach (XmlNode n in childnodes) |
|
|
|
|
// { |
|
|
|
|
// Console.WriteLine(n.SelectSingleNode("Attribute").OuterXml); |
|
|
|
|
|
|
|
|
|
// foreach (XmlNode s in n) |
|
|
|
|
// Console.WriteLine |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
Console.WriteLine("Press Any Key"); |
|
|
|
|
Console.ReadKey(); |
|
|
|
|
|
|
|
|
|