I am writing custom XML marshaller using XML generators. I am stuck with tag names writing.
Example:
List<String> userList = new ArrayList<String>();
userList.add("UserA");
userList.add("UserB");
Map<String, Object> systemMap = new HashMap<String, Object>();
systemMap.put("SystemA",userList);
My requirement is:
<SystemA>
<userList>
[userA,userB]
</userList>
</SystemA>
You can achieve that using Jaxb. Please extract inner classes to file before implementing.
This will output: