File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes xml to java object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml to java object" Watch "xml to java object" New topic

xml to java object

Harish Gavisiddaiah

Joined: Sep 04, 2006
Posts: 13
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

Joined: Apr 14, 2004
Posts: 10336

Moving to our XML forum...

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dave Ordi

Joined: Sep 22, 2006
Posts: 5
Mayby xstream is the stuff your looking for, easy as can be

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

Joined: Oct 14, 2005
Posts: 19973

"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

Joined: Sep 23, 2006
Posts: 31
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

Joined: Jun 20, 2003
Posts: 32
I agree. Here's the link:
subject: xml to java object
It's not a secret anymore!