[jdom-interest] converting Elements to objects

Anton Stoyanov anton.stoyanov at gmail.com
Thu Feb 17 11:13:58 PST 2005


Hi

i have the following (seems common, but all the posts about that are
from 2000 !)

i have an xml file like so: 

<customer>
<name>john</name>
<tel>23423423</tel>
etc....
</customer>

and a Customer.java class which has 

String name;
String tel;
etc....


with JDOM I can get a java.util.List of elements, but how can I
transform them into customer objects ?

I'm very interested in finding a solution which is independant of the
"customer" bit. because i have other classes too.

thanks alot 
if you need more information, please tell me.


-- 
----------------------
Anton Stoyanov


More information about the jdom-interest mailing list