Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. XmlDocument doc = new XmlDocument();
  2. doc.Load(xmlFile);
  3.  
  4. XmlNodeList nodeList = doc.SelectNodes("//Sample/Analysis");
  5.  
  6. foreach (XmlNode node in nodeList)
  7. {
  8. string tgcode = node.Attributes.["TestGroupCode"].Value;
  9. string tmcode = node.Attributes.["TestMethodCode"].Value;
  10. string ananame = node.Attributes.["AnaName"].Value;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement