@Deprecated
public class DomUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DomUtil.NullResolver
Deprecated.
|
Constructor and Description |
---|
DomUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Node |
findChildWithAtt(org.w3c.dom.Node parent,
java.lang.String elemName,
java.lang.String attName,
java.lang.String attVal)
Deprecated.
Find the first direct child with a given attribute.
|
static java.lang.String |
getAttribute(org.w3c.dom.Node element,
java.lang.String attName)
Deprecated.
|
static org.w3c.dom.Node |
getChild(org.w3c.dom.Node parent,
int type)
Deprecated.
Get the first direct child with a given type
|
static org.w3c.dom.Node |
getChild(org.w3c.dom.Node parent,
java.lang.String name)
Deprecated.
Get the first element child.
|
static java.lang.String |
getChildContent(org.w3c.dom.Node parent,
java.lang.String name)
Deprecated.
Get the first child's content ( ie it's included TEXT node ).
|
static java.lang.String |
getContent(org.w3c.dom.Node n)
Deprecated.
Get the trimmed text content of a node or null if there is no text
|
static org.w3c.dom.Node |
getNext(org.w3c.dom.Node current)
Deprecated.
Get the next sibling with the same name and type
|
static org.w3c.dom.Node |
getNext(org.w3c.dom.Node current,
java.lang.String name,
int type)
Deprecated.
Return the next sibling with a given name and type
|
static org.w3c.dom.Document |
readXml(java.io.InputStream is)
Deprecated.
Read XML as DOM.
|
static void |
removeAttribute(org.w3c.dom.Node node,
java.lang.String attName)
Deprecated.
|
static void |
setAttribute(org.w3c.dom.Node node,
java.lang.String attName,
java.lang.String val)
Deprecated.
|
static void |
setAttributes(java.lang.Object o,
org.w3c.dom.Node parent)
Deprecated.
|
static void |
setText(org.w3c.dom.Node node,
java.lang.String val)
Deprecated.
Set or replace the text value
|
static void |
writeXml(org.w3c.dom.Node n,
java.io.OutputStream os)
Deprecated.
|
public static java.lang.String getContent(org.w3c.dom.Node n)
public static org.w3c.dom.Node getChild(org.w3c.dom.Node parent, java.lang.String name)
parent
- lookup direct childrenname
- name of the element. If null return the first element.public static java.lang.String getAttribute(org.w3c.dom.Node element, java.lang.String attName)
public static void setAttribute(org.w3c.dom.Node node, java.lang.String attName, java.lang.String val)
public static void removeAttribute(org.w3c.dom.Node node, java.lang.String attName)
public static void setText(org.w3c.dom.Node node, java.lang.String val)
public static org.w3c.dom.Node findChildWithAtt(org.w3c.dom.Node parent, java.lang.String elemName, java.lang.String attName, java.lang.String attVal)
parent
- elemName
- name of the element, or null for anyattName
- attribute we're looking forattVal
- attribute value or null if we just want anypublic static java.lang.String getChildContent(org.w3c.dom.Node parent, java.lang.String name)
public static org.w3c.dom.Node getChild(org.w3c.dom.Node parent, int type)
public static org.w3c.dom.Node getNext(org.w3c.dom.Node current)
public static org.w3c.dom.Node getNext(org.w3c.dom.Node current, java.lang.String name, int type)
public static void setAttributes(java.lang.Object o, org.w3c.dom.Node parent)
public static org.w3c.dom.Document readXml(java.io.InputStream is) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public static void writeXml(org.w3c.dom.Node n, java.io.OutputStream os) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.