问题详情

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”);

时间:2022-02-24 01:44 关键词: CMS专题 微软认证考试 护理学章节练习

答案解析

D