niusouti.com

在J2EE中,使用Document对象的()方法,可以得到一个NodeList对象。A.getDocumentElement方法B.getElementsByTagName方法C.getElementTagName方法D.getElementById方法

题目
在J2EE中,使用Document对象的()方法,可以得到一个NodeList对象。

A.getDocumentElement方法

B.getElementsByTagName方法

C.getElementTagName方法

D.getElementById方法


相似考题
更多“在J2EE中,使用Document对象的()方法,可以得到一个NodeList对象。 ”相关问题
  • 第1题:

    在J2EE中,JAXP中所提供的更新原始XML文档的方法是调用XSLT引擎,主要和两个类有关,他们是()

    A.Node和Element类

    B.Document和NodeList类

    C.TransformerFactory和Transformer类

    D.TransFactory和Transmer类


    参考答案:C

  • 第2题:

    在J2EE中,接受一个XML文档,返回document对象,以分析该XML文档,可以使用如下()方法获得document对象

    A.Documentdoc=DocumentBuilderFactory.parse(“my.xml”);

    B.Documentdoc=DocumentBuilder.parse(“my.xml”);

    C.DocumentBuilderFactorydbf=DocumentBuilderFactory.newInstance();DocumentBuilder builder=dbf.newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);

    D.DocumentBuilderbuilder=newDocumentBuilder();Documentdoc=builder.parse(“my.xml”);


    参考答案:C

  • 第3题:

    在J2EE中,对XML文档进行转换后,将源DOM树中的数据输出到指定目标流的方法是()。

    A.DomResult对象的DomResult方法

    B.Nodelist对象的toString方法

    C.Document对象的addDocumenListener方法

    D.Transformer对象的transform方法


    参考答案:D

  • 第4题:

    在J2EE中,系列选项中,()可以得到URLCconnection类对象。

    A.使用URL对象的openConnection()方法得到

    B.使用URLConnection类的静态方法openConnection()方法得到

    C.使用URL对象的getConnection()方法得到

    D.使用URLConnection类的静态方法getConnection()方法得到


    参考答案:A

  • 第5题:

    在J2EE中,下列选项中,()可以得到URLConnection类对象

    A.使用URL对象的openConnection()方法得到

    B.使用URLConnection类的静态方法openConnection()方法得到

    C.使用URL对象的getConnection()方法得到

    D.使用URLConnection类的静态方法getConnection()方法得到


    参考答案:A