接口的使用
org.w3c.dom.Text
使用 Text 的包
-
Text 在 org.w3c.dom 中的用法
org.w3c.dom 中 Text 的子接口org.w3c.dom 中返回 Text 的方法修饰符和类型方法描述Document.createTextNode(String data) 在给定指定字符串的情况下创建一个Text节点。Text.replaceWholeText(String content) 用指定文本替换当前节点和所有逻辑上相邻的文本节点的文本。Text.splitText(int offset) 在指定的offset处将此节点分成两个节点,将它们作为兄弟节点保留在树中。