public class XmlSerializer extends Object
Constructor and Description |
---|
XmlSerializer() |
Modifier and Type | Method and Description |
---|---|
static String |
indent(int indent)
Return indent spaces.
|
static String |
xmlAttribute(String value,
String xmlTag)
Return the xml representation of the specified attribute value
|
static String |
xmlElement(String value,
String xmlTag,
int indent)
Return the xml representation of the specified value with the root-element xmlTag
|
public static String indent(int indent)
indent
- number of indentation.public static String xmlElement(String value, String xmlTag, int indent)
value
- String value to represent in XMLxmlTag
- tag of the root-elementindent
- indent to useCopyright © 2019 ScalAgent D.T.. All rights reserved.