题目内容 (请给出正确答案)
[单选题]

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

提问人:网友chensubing 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有5位网友选择 C,占比50%
  • · 有3位网友选择 A,占比30%
  • · 有2位网友选择 B,占比20%
匿名网友 选择了C
[202.***.***.87] 1天前
匿名网友 选择了A
[251.***.***.175] 1天前
匿名网友 选择了C
[158.***.***.246] 1天前
匿名网友 选择了C
[14.***.***.58] 1天前
匿名网友 选择了C
[188.***.***.118] 1天前
匿名网友 选择了B
[182.***.***.215] 1天前
匿名网友 选择了C
[136.***.***.67] 1天前
匿名网友 选择了A
[244.***.***.64] 1天前
匿名网友 选择了A
[2.***.***.215] 1天前
匿名网友 选择了B
[83.***.***.117] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“You load an XmlDocument named …”相关的问题
第1题
You load an XmlDocument named doc with the following XML. Dictionary World Atlas Yo

You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class. XmlElement root = doc.DocumentElement; XmlNodelist nodes = root.SelectNodes(“books/book”); Which additional two code segments can you use to achieve this goal? ()

A. foreach (XmlNode node in nodes){ node.Attributes[0].Value = “NA”;}

B. foreach (XmlNode node in nodes){ node.Attributes[1].Value = “NA”;}

C. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“/genre”); genre.Value = “NA”;}

D. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“@genre”); genre.Value = “NA”;}

E. foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode(“genre”); genre.Value = “NA”;}

点击查看答案
第2题
Your Web site processes book orders. One of the application methods contains the following
code segment. XmlDocument doc = newXmlDocument(); doc.LoadXml(“10”+” Dictionary”); You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. ()

A. XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);

B. XmlNode root = dec.DocumentElement;root.RemoveChild(root.SelectSingleNode(“discount”));

C. doc.RemoveChild(doc.FirstChild);

D. doc.DocumentElement.RemoveChild(doc.FirstChild);

点击查看答案
第3题
You create an application. The application processes hundreds of XML documents per minute.
The XML documents are validated against inline schemas. You need to load XML documents from the file system and read them as quickly as possible. XML comments must be ignored while reading the XML documents. What should you do?()

A. Create an instance of the XmlReader class by using the XmlReader Create method with an instance of the XmlReaderSettings class.

B. Create an instance of the XmlReader class with an instance of the XmlTextReader class.

C. Create an instance of the XmlDocument class and specify a location for the application schema.

D. Create an instance of the XmlReader class with an instance of the XmlNodeReader class.

点击查看答案
第4题
After making some network changes you power off and then power on your Cisco router named
VE1. What sequence of events occurs when VE1 is powered up?

A. Perform. POST, locate configuration statements, apply configuration statements, locate Cisco IOS software, and load Cisco IOS software.

B. Locate Cisco IOS software, load Cisco IOS software, locate configuration statements, apply configuration statements, and perform. POST.

C. Test software routines, POST, load configuration files, load Cisco IOS software, test Cisco IOS software.

D. Perrform. POST, locate Cisco IOS software, load the Cisco IOS software, locate configuration statements, and apply configuration statements.

E. Load and test IOS, load configuration files, test software routines, POST.

F. None of the above

点击查看答案
第5题
You create a Web application to process XML documents. The Web application receives XML do
cument files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document. What should you do? ()

A. Load the XML data by using an instance of the XmlDocument class and specify a location for the application schema.

B. Configure the ValidationEventHandler in the XmlReaderSettings of the XmlReader object.

C. Read the XML file into a DataSet object and set the EnforceConstraints property to True.

D. Read the XML file into a DataSet object. Handle the DataSet.MergeFailed event to parse the data that does not conform to the XML schema.

点击查看答案
第6题
XmlNode是表示XmlDocument的子类
点击查看答案
第7题
XmlNode是XmlDocument的子类
点击查看答案
第8题
XmlDocument是表示Xml文档的类
点击查看答案
第9题
Your company has a single Active Directory domain. All servers run Windows Server 2008 R2.You install an additional DNS server that runs Windows Server 2008 R2.You need to delete the pointer record for the IP address 10.3.2.127.What should you do?()

A. Use DNS manager to delete the 127.in-addr.arpa zone.

B. Run the dnscmd /RecordDelete 10.3.2.127 command at the command prompt.

C. Run the dnscmd /ZoneDelete 127.in-addr.arpa command at the command prompt.

D. Run the dnscmd /RecordDelete 10.in-addr.arpa. 127.2.3 PTR command at the command prompt.

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信