@Deprecated
public class XmlUtilities
extends java.lang.Object
XmlJdomUtilities
限定符和类型 | 方法和说明 |
---|---|
static org.w3c.dom.Element |
findElementNodeByName(org.w3c.dom.Node node, java.lang.String name)
已过时。
递归查找名称相符的子节点
|
static java.lang.String |
getAttribute(org.w3c.dom.Element node, java.lang.String attributeName)
已过时。
获取节点指定属性值
|
static org.w3c.dom.Element |
getChildElementNodeByName(org.w3c.dom.Node node, java.lang.String name)
已过时。
获取指定节点下,找到的第一个 name 节点
|
static org.w3c.dom.Element[] |
getChildElementNodes(org.w3c.dom.Node node)
已过时。
获取指定节点下所有子节点
|
static org.w3c.dom.Element[] |
getChildElementNodesByName(org.w3c.dom.Node node, java.lang.String name)
已过时。
获取指定节点下所有的 name 节点
|
static org.w3c.dom.Document |
getEmptyDocument()
已过时。
创建一个空文档对象
|
public static org.w3c.dom.Document getEmptyDocument()
public static org.w3c.dom.Element getChildElementNodeByName(org.w3c.dom.Node node, java.lang.String name)
public static org.w3c.dom.Element[] getChildElementNodesByName(org.w3c.dom.Node node, java.lang.String name)
public static org.w3c.dom.Element findElementNodeByName(org.w3c.dom.Node node, java.lang.String name)
public static org.w3c.dom.Element[] getChildElementNodes(org.w3c.dom.Node node)
public static java.lang.String getAttribute(org.w3c.dom.Element node, java.lang.String attributeName)
node
- 节点attributeName
- 属性名称