• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml to java object

 
Harish Gavisiddaiah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any tool for defining a java object out of the DTD or XSD of the xml file.
[ September 22, 2006: Message edited by: Harish Gavisiddaiah ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our XML forum...
 
Dave Ordi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mayby xstream is the stuff your looking for, easy as can be

http://xstream.codehaus.org/

thake a look at the two minute tutorial ;-) you'l see

http://xstream.codehaus.org/tutorial.html
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"blueNotesaloon", welcome to the JavaRanch.

We're friendly folks here, but we do require members to have valid display names.

Display names must be your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names will be deleted.
 
vinay kumar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI harish..
I found this thread in xml certification. This was my reply there::
----------------
Didn't understand why somebody wants to convert XML DTD to Java classes. Ok. but this may be(may be) useful for your interest.

JAXB is used to create Java objects of the the XML elements. It needs the XML schema document (not DTD,ofcourse) as source instead of the xml document itself. The created objects are used manipulate the xml document.
JAXB is faster in this process (compared to DOM/SAX !!??).

Anybody knows if JAXB is faster than DOM/SAX? Sorry harish, if I am deviating from your topic.

Cheers, Vnay.
 
thomas silver
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://xmlbeans.apache.org/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic