欢迎来到求知题库网 求知题库官网
logo
全部科目 > java工程师信产部认证考试

多项选择题

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

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

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题