试题详情
单项选择题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、Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(".")

B、Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("book")

C、Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("bookstore//book")

D、Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book")

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题