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 u

题目

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)


相似考题
更多“Your Web site processes book orders. One of the application methods contains the following ”相关问题
  • 第1题:

    WhatisthenameoftheWebLogicspecificdeploymentdescriptorofJavaEnterpriseApplication?()

    A.application.xml

    B.weblogic.xml

    C.web.xml

    D.weblogic-application.xml

    E.config.xml


    参考答案:B

  • 第2题:

    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”


    href=“../web/article/01.html”

  • 第3题:

    1、当有用户请求 Web页面时,会触发()事件?

    A.Application_Start()

    B.Session_Start()

    C.Application_End()

    D.Session_End()


    Session_Start()

  • 第4题:

    How many books do you have? I have ______ book .That's ______ English book.

    A、a,an

    B、a,one

    C、on,an

    D、one,one


    参考答案: A

  • 第5题:

    下面选项中,创建Servlet类后需要在哪个配置文件中进行配置()。

    A.web-config.xml

    B.application.xml

    C.config.xml

    D.web.xml


    D

  • 第6题:

    当有用户请求 Web页面时,会触发()事件?

    A.Application_Start()

    B.Session_Start()

    C.Application_End()

    D.Session_End()


    Application_Start()