多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

You load an XmlDocument named doc with the following XML. World Atlas Dictionary You need to use an XPath query string to select the two book nodes. Which code segment should you use? ()

  • A、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“.”);
  • B、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“book”);
  • C、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“bookstore//book”);
  • D、XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(“books/book”);
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题