在J2EE中,使用()选项中的代码,可以生成如下XML文档:      Tony Blair      A、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); people.appendChild(person); person.appendChild(name); doc.appendChild(people);B、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);C、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendText(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);D、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON");Element name = doc.createElement("NAME"); name.createTextNode("Tony Blair"); people.appendChild(person); person.appendChild(name); doc.appendChild(people);

在J2EE中,使用()选项中的代码,可以生成如下XML文档:    Tony Blair   

  • A、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); people.appendChild(person); person.appendChild(name); doc.appendChild(people);
  • B、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendChild(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);
  • C、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON"); people.appendChild(person); Element name = doc.createElement("NAME"); name.appendText(doc.createTextNode("Tony Blair")); person.appendChild(name); doc.appendChild(people);
  • D、Element people = doc.createElement("PEOPLE");  Element person = doc.createElement("PERSON");Element name = doc.createElement("NAME"); name.createTextNode("Tony Blair"); people.appendChild(person); person.appendChild(name); doc.appendChild(people);

相关考题:

详细阅读下面的FORM. 表单和PHP代码。当在表单里面的两个文本框分别输入’php’和’great’的时候,PHP代码将在页面中打印出什么?( )form. action=’index.php’ method=’post’input type=’text’ name=’element[]’input type=’text’ name=’element[]’input type=’submit’ value=’提交’/formIndex.php 代码如下:?phpif(A.什么都没有B.AarryC.一个提示D.phpgreat

在J2EE中,使用()选项中的代码,可以生成如下XML文档:PEOPLEPERSONNAMETonyBlair/NAME/PERSONPEOPLE A.Elementpeople=doc.createElement(PEOPLE);Elementperson=doc.createElement(PERSON);Elementname=doc.createElement(NAME);name.appendChild(doc.createTextNode(TonyBlair));people.appendChild(person);person.appendChild(name);doc.appendChild(people);B.Elementpeople=doc.createElement(PEOPLE);Elementperson=doc.createElement(PERSON);people.appendChild(person);Elementname=doc.createElement(NAME);name.appendChild(doc.createTextNode(TonyBlair));person.appendChild(name);doc.appendChild(people);C.Elementpeople=doc.createElement(PEOPLE);Elementperson=doc.createElement(PERSON);people.appendChild(person);Elementname=doc.createElement(NAME);name.appendText(doc.createTextNode(TonyBlair));person.appendChild(name);doc.appendChild(people);D.Elementpeople=doc.createElement(PEOPLE);Elementperson=doc.createElement(PERSON);Elementname=doc.createElement(NAME);name.createTextNode(TonyBlair);people.appendChild(person);person.appendChild(name);doc.appendChild(people);

在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个资源的值的代码是()。 A.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue()B.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getFirstChild().getNodeValue()C.((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue()D.((Element)doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue()

给出下列的不完整的类代码,则哪个语句可以被加到横线处? ( ) class Person{ String name,department; int age; public Person(String n){name=n;} public Person(String n,int s){name=n; age=a;} public Person(String n,String d,int a){ department=d;______ } }A.Person(n,a);B.this(Person(n,a));C.this(n,s);D.this(name,age);

给出下列的不完整的类代码,则下列的( )语句可以加到横线处。 class Person{ String name,department; int age public Person(String n){name=n;} public Person(String n,int a){name=n;age=a;} pubilc Person(String n,String d,int a) { _______________ department=d; } }A.Person(n,a);B.this(Person(n,a));C.this(n,a);D.this(name,age);

给出下面不完整的类代码,则横线处的语句应该为( )。 class Person { String name,department; int age; public Person (Strings) {name=s;} public Person (String s,intA.{name=s;age=a;} public Person (String n,String d,intA){ __________ department=d; } }A)Person (n,A);B.this (Person(n,A));C.this(n,A);D.this(name,age);

In C launguage, when an array name is passed to a function, what is passed is the ______ of the beginning of the array.A.dataB.valueC.locationD.element

为使下列代码正常运行,应该在下画线处填入的选项是( )。 abstract class person{ public Person(String n){ name=n: } Public String getDescription; public String getName{ return name; } private string name; }A.staticB.privateC.abstractD.final

在 DOM 节点类型中,以下( )表示 XML 文档的根节点。A. Text B. Element C. Document D. Node

What the element ‘-es’ indicates is third person singular, present tense, the element ‘-ed’ past tense, and ‘-ing’ progressive aspect. Since they are the smallest unit of language and meaningful, they are also().AphonemesBmorphemesCallophonesDphones

XML Schema文档中元素element的()属性指定子元素可以出现的最多次数。A、minB、maxOccursC、minOccursD、max

分析以下DTD文档: <!--ELEMENT doc(title?,chap*)--> <!-- ELEMENT title(#PCDATA)--> <!-- ELEMENT chap(sect+)--> <!-- ELEMENT sect(para+)--> <!-- ELEMENT para(#PCDATA)--> 下面的XML实例能够通过DTD的校验。() A、<doc><chap><para>Text</para></chap></doc>B、<doc><chap><sect><para>Text</para></chap></doc>C、<doc><title>Text</title></doc>(*红色)D、<doc><title>Text</title><sect><para>Text</para></sect></doc>

有如下XML代码段: <element>text</element> 可以通过哪些方法获得标记<element>中的数据“text”?

XML Schema文档中语句 : <element type=”name” minOccurs=“1” maxOccurs=”*”/> 中属性type的作用是()A、指定子元素的属性B、指定子元素的数据类型C、指定子元素是引用元素声明中name属性值为name的元素D、指定子元素名称

Which element of a web application deployment descriptor  element is required()?A、 realm-name B、 auth-method C、 security-role D、 transport-guarantee E、 web-resource-collection

2015版《企业会计准则通用分类标准》中,元素名称(element name)以元素的中文标准标签为基础确定。

考虑如下的XML.Schema示例 <xs:element name=”Price”><xs:complexType><xs:attribute name=”currency”type=”xs:string”/></xs:complexType></xs:element> 属性currency声明等同于下面选项()的DTD声明。A、<!ATTLISTPricecurrencyCDATA#REQUIRED>B、<!ATTLISTPricecurrencyCDATA#FIXED>C、<!ATTLISTPricecurrencyCDATA#IMPLIED>D、<!ATTLISTPricecurrencyPCDATA#IMPLIED>

下面的文件正确吗?为什么?用IE和本章中的解析器验证你的结论。 mes.dtd <!ELEMENT message ANY> <!ELEMENT persion (name,age?,lxfs)> <!ELEMENT lxfs (#PCDATA,tel|email)*> <!ELEMENT name (first,last)> <!ATTLIST name sex (male|female) "male"> <!ELEMENT first %pc; > <!ELEMENT last %pc;> <!ELEMENT age %pc;> <!ELEMENT tel %pc;> <!ELEMENT email %pc;> <!ENTITY % pc “(#PCDATA)”> <!ELEMENT emergency EMPTY> <!ATTLIST emergency fire CDATA #FIXED "119" police CDATA #FIXED "110" hospital CDATA #FIXED "120" > mes.xml <?xml version="1.0" encoding="gb2312"?> <!DOCTYPE SYSTEM "mes.dtd"> <message> <persion> <name sex="男"> <first>li</first> <last>xiao</last> </name> <age>25</age> <lxfs> <tel>123456</tel> </lxfs> </persion> <persion> <name> <first>wang</first> <last>xiao</last> </name> <lxfs></lxfs> </persion> <emergency fire="120" police="110" /> </message>

一个元素内容中既含有文本也含有子元素,应当怎样定义()A、<xs:element name="example" type=" xs:mixed ">B、<xs:element name="example"> <xs:complexType>C、<xs:element name="example"> <xs:complexType mixed="false">D、<xs:element name="example"> <xs:complexType mixed="true">

在jQuery的层次选择器中,要选取紧接在element1元素后的一个element2元素,正确的是()。A、$(element1空格element2)B、$(element1element2)C、$(element1+element2)D、$(element1~element2)

在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。 A、((Element).doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue;B、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getFristChild().getNodeValue();C、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue();D、 ((Element).doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue();

在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个资源的值的代码是()。 A、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue()B、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getFirstChild().getNodeValue()C、((Element)doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue()D、((Element)doc.getElementsByTagName(“PERSON”).item(0)). item(0).getNodeValue()

单选题在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。A((Element).doc.getElementsByTagName(“PERSON”).item(0)).getNodeValue;B ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getFristChild().getNodeValue();C ((Element).doc.getElementsByTagName(“PERSON”).item(0)).getElementsByTagName(“NAME”).item(0).getNodeValue();D ((Element).doc.getElementsByTagName(“PERSON”).item(0)).item(0).getNodeValue();

多选题在J2EE中,使用()选项中的代码,可以生成如下XML文档:      Tony BlairAElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); people.appendChild(person); person.appendChild(name); doc.appendChild(people);BElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendChild(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);CElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON); people.appendChild(person); Element name = doc.createElement(NAME); name.appendText(doc.createTextNode(Tony Blair)); person.appendChild(name); doc.appendChild(people);DElement people = doc.createElement(PEOPLE);  Element person = doc.createElement(PERSON);Element name = doc.createElement(NAME); name.createTextNode(Tony Blair); people.appendChild(person); person.appendChild(name); doc.appendChild(people);

单选题在J2EE中,假设sample.xml文档有一个元素是,它有个子元素是。我们已经获得了Document对象doc,取出第一个的第一个子元素的值的代码是()。A((Element)doc.getElementsByTagName(PERSON).item(0)).getNodeValue();B((Element)doc.getElementsByTagName(PERSON).item(0)).getElementsByTagName(NAME).item(0).getFirstChild().getNodeValue();C((Element)doc.getElementsByTagName(PERSON).item(0)).getElementsByTagName(NAME).item(0).getNodeValue();D((Element)doc.getElementsByTagName(PERSON).item(0)).item(0).getNodeValue();

单选题Which element of a web application deployment descriptor  element is required()?A realm-name B auth-method C security-role D transport-guarantee E web-resource-collection

单选题What the element ‘-es’ indicates is third person singular, present tense, the element ‘-ed’ past tense, and ‘-ing’ progressive aspect. Since they are the smallest unit of language and meaningful, they are also().AphonemesBmorphemesCallophonesDphones