你正在装载一个名为 doc 的 XML 文档。文档内容如下:<img src="https://nimg.ppkao.com/2018-07/longzhengxuan/2018072715490395137.jpg?sign=dcd50ea2bb76d0de851f96a5c3c7353b&t=62d0c619" />你需要使用Xpath查询去选择book节点,你该如何做?()
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”);