public class POBXMLParser
extends java.lang.Object
| Constructor and Description |
|---|
POBXMLParser() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.w3c.dom.Node |
createNode(java.lang.String content)
Creates an node from provided string content and returns it.
|
static <T extends POBXMLNodeListener> |
parse(java.lang.String content,
java.lang.Class<T> rootClass)
Creates an xml node from provided content and builds model class instance with node values.
|
public static <T extends POBXMLNodeListener> T parse(java.lang.String content, java.lang.Class<T> rootClass)
content - string xml content to be parsed.rootClass - model class of which the object needs to be created of type POBXMLNodeListener.protected static org.w3c.dom.Node createNode(java.lang.String content)
throws java.lang.Exception
content - xml content to create Document of DOM parser.java.lang.Exception