多做题,通过考试没问题!

java工程师信产部认证考试

睦霖题库>其他计算机考试>java工程师信产部认证考试

在J2EE中,在my.xml中只有代码: 假设doc为已经创建的Document对象,则()解析生成上述XML文档对象。    

  • A、Node person = doc.createNode(“PERSON”,”E01”);
  • B、Element person = doc.createElement(“PERSON”,”E01”);
  • C、Element person = doc.createElement (“PERSON”);Person.setAttribute(“PERSON”,”E01”);
  • D、Node person = doc.createElement (“PERSON”);Person.setAttribute(“PERSON”,”E01”);
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题