单项选择题

调用Document节点使用()可返回当前节点的DocumentType子节点。

A.getWholeText()
B.getDocType()
C.getXmlVersion()
D.getLength()