
public final class XmlParser extends Object
| Modifier | Constructor and Description |
|---|---|
private |
XmlParser()
Hiding utility class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
unmarshallXmlString(String xmlStr,
Class<?> clazz)
This method unmarshalls (reads) the supplied XML string using JAXB using the supplied class object to create the
JAXB context.
|
public static Object unmarshallXmlString(String xmlStr, Class<?> clazz) throws JAXBException
xmlStr - a bare XML string (with no header information).clazz - the java class that can be recognized by a JAXBContext.JAXBException - if the XML cannot be unmarshalled.Copyright © 2015 University of Glasgow. All rights reserved.