public class XMLUtil extends Object
Constructor and Description |
---|
XMLUtil() |
Modifier and Type | Method and Description |
---|---|
static List<Element> |
getChildElements(Element parentElement,
String elementName) |
static Element |
getFirstElement(Element parent,
String elementName) |
public static Element getFirstElement(Element parent, String elementName)
parent
- the element in which to look for the first child element with
given nameelementName
- name of the child element to look upnull
if no such element was foundpublic static List<Element> getChildElements(Element parentElement, String elementName)
parentElement
- Element in which to look up the children with given nameelementName
- name of child elements to look upnull
.Copyright © 2018. All rights reserved.