问题:
你正在装载一个名为 doc 的 XML 文档。文档内容如下:你需要使用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”)
你正在装载一个名为 doc 的 XML 文档。文档内容如下:你需要使用Xpath查询去选择book节点,你该如何做?()
● 参考解析
本题暂无解析