Your Web site processes book orders. One of the application methods contains the following code segment.Dim doc As New XmlDocument()doc.LoadXml("10" discount))C. doc.RemoveChild(doc.FirstChild)D. doc.DocumentElement.RemoveChild(doc.FirstChild)

Your Web site processes book orders. One of the application methods contains the following code segment.Dim doc As New XmlDocument()doc.LoadXml("10" &_"Dictionary")You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? ()

A. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.FirstChild)

B. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.SelectSingleNode("discount"))

C. doc.RemoveChild(doc.FirstChild)

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


相关考题:

下面( )文件负责处理Application_Start、Application_End、Session_Start和Session_End等事件。A.Web.configB.Config.asaxC.Global.asaxD.Global.inc

You’re going to have a quiz ( )by another two in the ( )month. A. followed,followedB. followed,followingC. following,followedD. following,following

您在运行WindowsServer2008的服务器上安装了Web服务器(IIS)角色。您在该Web服务器上配置了名为contoso.com的网站,以及名为Acctg的Web应用程序。Web服务器的磁盘空间用尽。您将Acctg移至Web服务器上的另一个驱动器。下表显示了当前应用程序配置。用户报告他们无法访问Acctg。您需要使用户能访问Acctg。应该在服务器上运行什么命令?() A.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgB.appcmdaddapp/site.name:contoso/path:/Acctg/physicalPath:f:\AcctgC.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:d:\AcctgD.appcmdsetapp/site.name:contoso/path:/Acctg/physicalPath:f:\Acctg

当 Web 应用关闭后,你需要人工释放资源。为此,你应该响应哪一个事件?() A.Application_BeginRequestB.Application_EndC. Application_StartD.Application_EndRequest

WhatisthenameoftheWebLogicspecificdeploymentdescriptorofJavaEnterpriseApplication?() A.application.xmlB.weblogic.xmlC.web.xmlD.weblogic-application.xmlE.config.xml

How many books do you have? I have ______ book .That's ______ English book. A、a,anB、a,oneC、on,anD、one,one

3、在本地站点中有如下两文件 G:\site\other\index.html G:\site\web\article\01.html index.htm要想链接到01.html这个文件,正确的链接路径应该是:A.href=“01.html”B.href=“web/article/01.html”C.href=“../web/article/01.html”D.href=“../../web/article/01.html”

下面选项中,创建Servlet类后需要在哪个配置文件中进行配置()。A.web-config.xmlB.application.xmlC.config.xmlD.web.xml

1、当有用户请求 Web页面时,会触发()事件?A.Application_Start()B.Session_Start()C.Application_End()D.Session_End()

当有用户请求 Web页面时,会触发()事件?A.Application_Start()B.Session_Start()C.Application_End()D.Session_End()