I need to convert this xml into List<String> & last three in HashMap<String, List<String>> [ here Key String will the attribute name value ]. I tried some method but not able to get the value XXX from <ListEnv> XXX </ListEnv>
posted 3 years ago
Apache Commons Digester can help with this if you only need the XML->Java direction. Or write a SAX parser that creates those objects.
If you need Java -> XML as well, JAXB might be the way to go.