public class XmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Element> |
getChildElements(Element element) |
static Element |
getElement(Document doc,
String path) |
static Element |
getElement(Element element,
String path) |
static List<Element> |
getElements(Document doc,
String path) |
static List<Element> |
getElements(Element element,
String path) |
static String |
getTextContent(Node node) |
static String |
getTextContentOfElement(Document doc,
String path) |
static String |
getTextContentOfElement(Element element,
String path) |
static Document |
parseDoc(File xmlFile) |
static Document |
parseDoc(InputStream is) |
public static Document parseDoc(File xmlFile) throws ParserConfigurationException, SAXException, IOException
public static Document parseDoc(InputStream is) throws ParserConfigurationException, SAXException, IOException
Copyright © 2011–2017 Red Hat. All rights reserved.