wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml to java object" Watch "xml to java object" New topic
Author

xml to java object

Harish Gavisiddaiah
Greenhorn

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
Bartender

Joined: Apr 14, 2004
Posts: 10336

Moving to our XML forum...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dave Ordi
Greenhorn

Joined: Sep 22, 2006
Posts: 5
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"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
http://xmlbeans.apache.org/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml to java object
 
Similar Threads
Java Object - XML
Convert XSLT Template to XSLT String object
Java to XML
Write XML using JAVA
Java Objects to XML