單項選擇題

在J2EE中,在my.xml中只有代碼:

假設(shè)doc為已經(jīng)創(chuàng)建的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”);

微信掃碼免費搜題