I have a lot of XML files as below. How can I create Java class (Java object) from it automatically? How to update key and value in the String?
`<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="MODE" value="1"/>
<add key="NAME" value="DIRN2"/>
</appSettings>
</configuration>`
public void createPc("pc.xml"){
XStream xstream = new XStream();
Pc newpc = (Pc)xstream.fromXML(pc.xml);
// updating key and value
????????????
}