A、Document doc=DocumentBuilderFactory.parse(“my.xml”);
B、Document doc=DocumentBuilder.parse(“my.xml”);
C、DocumentBuilderFactory dbf= DocumentBuilderFactory.newInstance(); DocumentBuilder builder=dbf.newDocumentBuilder(); Document doc=builder.parse(“my.xml”);
D、DocumentBuilder builder=new DocumentBuilder(); Document doc=builder.parse(“my.xml”);
查看答案