其他分享
首页 > 其他分享> > nu.xom:Document

nu.xom:Document

作者:互联网

Document:

机翻

Document(Document doc):创建此文档的副本。
Document(Element root):使用指定的根元素创建新的Document对象。


DocType getDocType()     :返回此文档的文档类型声明,如果没有,则返回null。
Element getRootElement() :返回此文档的根元素。
String getValue()        :返回XPath 1.0定义的文档值。


Node removeChild(int position)                  :在指定位置删除此文档的子项。
Node removeChild(Node child)                    :从此文档中删除指定的子项
void replaceChild(Node oldChild, Node newChild) :用新的子节点替换现有子节点


void setDocType(DocType doctype)  :设置此文档的文档类型声明。
void setRootElement(Element root) :用不同的根元素替换当前的根元素

 

标签:Node,xom,void,元素,Element,文档,Document,nu
来源: https://www.cnblogs.com/junjie2019/p/10541516.html