public final class XMLUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertEquivalent(Node node,
Node node2) |
static String |
elementToString(Node n) |
static URL |
findResource(String resourceName) |
static String |
getTextContent(Node n)
Note: if the content is another element or set of elements, it returns a string representation
of the hierarchy.
|
static boolean |
parseBoolean(Node elem) |
static double |
parseDouble(Node elem) |
static int |
parseInt(Node elem) |
static long |
parseLong(Node elem) |
static Element |
readerToElement(Reader r) |
static String |
readerToString(Reader r) |
static String |
replaceSystemPropsInString(String xml) |
static Document |
replaceSystemPropsInXml(Document doc) |
static Element |
streamToElement(InputStream inputStream) |
static Element |
stringToElement(String s) |
static String |
stripCDATA(String s) |
static Element |
urlToElement(URL url) |
static void |
validate(Node node,
String schemaFile) |
public static Element streamToElement(InputStream inputStream) throws Exception
Exception
public static String getTextContent(Node n)
public static long parseLong(Node elem)
public static int parseInt(Node elem)
public static boolean parseBoolean(Node elem)
public static double parseDouble(Node elem)
public static void validate(Node node, String schemaFile) throws Exception
Exception
Copyright © 2020 JBoss by Red Hat. All rights reserved.