public final class XmlUtils extends Object
Constructor and Description |
---|
XmlUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getTextForElement(String xmlAsString,
String element)
Retrieve the text for a specific element (when we know there is only
one).
|
static List<String> |
getTextForElements(String xmlAsString,
String element)
Retrieve the text for a group of elements.
|
static XMLReader |
getXmlReader()
Get an instance of an XML reader from the XMLReaderFactory.
|
public static XMLReader getXmlReader()
public static List<String> getTextForElements(String xmlAsString, String element)
This method is currently optimized for the use case of two elements in a list.
xmlAsString
- the xml responseelement
- the element to look forCopyright © 2006–2014 Jasig. All rights reserved.