public class XmlMapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_PREFIX |
| Constructor and Description |
|---|
XmlMapper() |
| Modifier and Type | Method and Description |
|---|---|
static Map |
map(Document doc)
Maps each element node and attribute under a given node to a Map.
|
static void |
populateBeanFromDoc(Serializable bean,
Document doc)
Maps each element node to a bean property.
|
public static final String ATTRIBUTE_PREFIX
public static Map map(Document doc)
node - Nodeindent - Stringpublic static void populateBeanFromDoc(Serializable bean, Document doc)
bean - Serializable object which has the appropriate setters/gettersdoc - the documentCopyright © 2022. All rights reserved.