public class POBXMLParser
extends java.lang.Object
| 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.
|
@Nullable public static <T extends POBXMLNodeListener> T parse(@NonNull java.lang.String content, @NonNull java.lang.Class<T> rootClass)
T - Any model class whose object needs to be created.content - string xml content to be parsed.rootClass - model class of which the object needs to be created of type POBXMLNodeListener.@NonNull
protected static org.w3c.dom.Node createNode(@NonNull
java.lang.String content)
throws java.lang.Exception
content - xml content to create Document of DOM parser.java.lang.Exception - Throws exception if unable to create node based on provided content