public final class XmlExtensions extends Object
XmlExtensions.| Constructor and Description |
|---|
XmlExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static InputSource |
getInputSource(String xmlString)
Gets the input source from the given xml string.
|
static <T> T |
loadObject(File xmlFile)
Load from the given file name that should represent an xml file and transform it to the
generic type object.
|
static <T> T |
loadObject(String xmlFileName)
Load from the given file name that should represent an xml file and transform it to the
generic type object.
|
static String |
newTag(String tagname,
String value,
Map<String,String> attributes)
Creates a tag from the given string values.
|
public static InputSource getInputSource(String xmlString)
xmlString - the xml as string objectpublic static <T> T loadObject(File xmlFile) throws IOException
T - the generic typexmlFile - the xml fileIOException - Signals that an I/O exception has occurred.public static <T> T loadObject(String xmlFileName) throws IOException
T - the generic typexmlFileName - the xml file nameIOException - Signals that an I/O exception has occurred.public static String newTag(String tagname, String value, Map<String,String> attributes)
tagname - the tag namevalue - the value from the tagattributes - a map with the attributesCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.