public class DomUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DomUtils.NullResolver |
Constructor and Description |
---|
DomUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
countElements(Node parent) |
static List<Node> |
getAllNodes(Node parent,
String... tags) |
static double |
getAttributeDouble(Node node,
String name) |
static String |
getAttributeText(Node node,
String name) |
static Node |
getFirstNode(Node parent,
String... path) |
static String |
getFirstTextNode(Node parent,
String... path) |
static void |
getNodes(List<Node> nodes,
Node parent,
String... path) |
static List<Node> |
getNodes(Node parent,
String... path) |
static String |
getText(Node node) |
static Document |
readXml(InputSource source,
boolean errorSilent) |
static Document |
readXml(StreamSource source,
boolean errorSilent) |
static void |
updateAttributeText(Node node,
String name,
String value) |
static Result |
xslt(Source xmlSource,
String xsl,
File destination) |
static void |
xslt(Source xmlSource,
String xsl,
Result xmlResult) |
public static final int countElements(Node parent)
public static final void updateAttributeText(Node node, String name, String value)
public static Document readXml(StreamSource source, boolean errorSilent) throws SAXException, IOException, ParserConfigurationException
public static Document readXml(InputSource source, boolean errorSilent) throws SAXException, IOException, ParserConfigurationException
public static final void xslt(Source xmlSource, String xsl, Result xmlResult) throws TransformerException
TransformerException
public static final Result xslt(Source xmlSource, String xsl, File destination) throws TransformerException
TransformerException
Copyright © 2013 Jaeksoft OpenSearchServer. All rights reserved.