在Java中,使用Dom4j为Xml文档的节点添加属性,正确的是
A.节点.addAttributes();
B.节点.addAttribute("属性名","属性值");
C.节点.addAttributes("属性名","属性值");
D.节点.addElement();
正确答案是B