Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml t o java object

 
Harish Gavisiddaiah
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any tool for converting xml dtd to java class definition?

Thank you
 
vinay kumar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 your topic.

Cheers, Vnay.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65338
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"v'nay",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Scott Selikoff
author
Saloon Keeper
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vinay l"

I'm sorry but your name still does not conform to our naming guidelines. Please re-read the policy and update it accordingly.

-Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic