试题详情
单项选择题使用DOM解析XML时,创建DocumentBuilder对象正确的是:()

A、DocumentBuilderbuilder=newDocumentBuilder();

B、DocumentBuilderbuilder=newDocumentBuilderFactory()

C、DocumentBuilderbuilder=DocumentBuilderFactory.newInstance();

D、DocumentBuilderbuilder=DocumentBuilderFactory.newInstance().newDocumentBuilder();

  • D
  • 关注下方微信公众号,在线模考后查看

热门试题