public final class DOMUtils extends Object
Constructor and Description |
---|
DOMUtils() |
Modifier and Type | Method and Description |
---|---|
static Document |
createDoc(String namespaceURI,
String rootElement,
String[]... namespaces) |
static Element |
createElement(Element parent,
String prefix,
String elementName) |
static Element |
createElementAndText(Element parent,
String prefix,
String elementName,
String text) |
static String |
getElementText(Element node) |
static String |
getElementText(Element root,
String prefix,
String elementName) |
static String |
getNamespaceURI(String prefix) |
static List<String> |
getTexts(Element root,
String prefix,
String elementName) |
static Element |
getUniqueElement(Element parent,
String prefix,
String elementName) |
static Document |
parse(InputStream is) |
public static Element getUniqueElement(Element parent, String prefix, String elementName)
public static Element createElementAndText(Element parent, String prefix, String elementName, String text)
public static Element createElement(Element parent, String prefix, String elementName)
public static Document parse(InputStream is) throws SAXException, IOException
SAXException
IOException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.