试题详情
单项选择题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
  • 关注下方微信公众号,在线模考后查看

热门试题