搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

你正在装载一个名为 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”);

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

A、XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml");XmlDeclaration xmldecl = doc.CreateXmlDeclaration("encoding", "Unicode");  B、XmlDocument doc = new XmlDocument();doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", null, "yes");  C、XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode", "yes");  D、XmlDocument doc = new XmlDocument(); doc.Load("subscribers.xml"); XmlDeclaration xmldecl = doc.CreateXmlDeclaration("1.0", "Unicode");  

点击查看答案
第2题

A、通过使用带有XmlReaderSettings 参数XmlReader Create方法创建一个XmlReader 实例。  B、使用XmlTextReader 参数创建一个XmlReader 实例。  C、创建一个XmlDocument 实例并且指定架构位置。  D、使用XmlNodeReader参数创建一个XmlReader 实例。  

点击查看答案
第4题

A、A.创建一个名为oobe.xml应答文件,复制这个文件到一个网络共享位置  B、B.创建一个名为winnt.sif应答文件,将这个文件放到一个可移动驱动器上  C、C.创建一个名为sysprep.inf应答文件,复制这个文件到一个网络共享位置  D、D.创建一个名为autounattend.xml应答文件,将这个文件放到一个可移动驱动器上  

点击查看答案
第5题

A、subscriber.DocumentElement.Attributes("phone").Value  B、subscriber.DocumentElement.ChildNodes[2].Value  C、subscriber.FirstChild.Attributes("phone").Value  D、subscriber.GetElementById("phone").Value  E、subscriber.DocumentElement.GetAttributeNode("phone").Value  

点击查看答案
第8题

A、A.使用XmlDocument对象读取XML数据,同时指定相应架构文件。  B、B.为XmlReader对象XmlReaderSettings设置ValidationEventHandler;  C、C.使用DataSet对象读取XML文件,并且设置EnforceConstraints属性为True;  D、D.使用DataSet对象读取XML文件,并且在DataSet.MergeFailed事件中分析数据看是否符合XML架构。  

点击查看答案
第9题

A、A.Imagex.exe /append answer.xml /check  B、B.Imagex.exe /mount answer.xml /verify  C、C.Sysprep.exe /reboot /audit /unattend:answer.xml  D、D.Sysprep.exe /generalize /oobe /unattend:answer.xml  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服