单项选择题

把一个XML节点树转换为XML文档,需要用()方法。

A.getInstance()
B.transform()
C.appendChild()
D.getVersion()