Hi,
I am looking out for a tool or library for following requirement.
1] I have XML file e.g. something like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Person>
<firstname>Joe</firstname><lastname>Walnes</lastname>
<phone><code>123</code><number>1234-456</number></phone>
<fax><code>123</code><number>9999-999</number></fax>
</Person>
I don't have XSD file of this XML .
2] I don't have 'Person'
java class .
Is there any tool or library available which will parse XML file and at runtime build Java class 'Person' with getter and setter for Tags like getFirstName() and setFirstName() and so on .
Similarly , it will populate the value of 'Person' class with values in xml e.g setting 'firstname' in 'Person' class as 'Joe' and so on ?