[jdom-interest] A way to map an XML file to a JAVA object?

Søren Faltz soren.faltz at gmail.com
Thu Jul 6 02:03:41 PDT 2006


Is there any ways to map the xml file into a java object??? So that i dont
have to browse through the entire tree in order to get what i want??

for instance this xml file

<root>
  <name>
     <Firstname>Soren</Firstname>
     <Lastname>Faltz</Lastname>
   </name>
</root>


mapped into this

MyObject obj = JDOM.Document.DOSOMETHINGHERE();

println(obj.Firstname);
println(obj.Lastname);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20060706/24c678f8/attachment.htm


More information about the jdom-interest mailing list