• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Converting XML to JavaBean

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have a requirement for converting an XML file to JavaBean. The challenge here is the file is too big having around 100 nodes.

Has anyone used similar tools for convert XML into a Javabean. let me know

thanks in advance.

rgds

Purushothaman

[ February 27, 2006: Message edited by: Rajesh Rajaram ]
[ February 27, 2006: Message edited by: Rajesh Rajaram ]
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
>> having around 100 nodes.
if that is the maximum size that your xml is going to grow then any framework should do. JAXB is the Java/J2ee standard for this purpose

JiBx is an opensource alternative that uses the pull api under the hood. It is also the fastest api around

-Raj
 
Rajesh Rajaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want a new JavaBean for the each XML file. Not just retriving the XML data.

rgds

Rajesh
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you need is a DTD/XML schema to JavaBean generator. check on the web
along those terms.


try:
 
ak pillai
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What you need is a DTD/XML schema to JavaBean generator. check on the web
along those terms.


try: DTD to JavaBean.

Also look at Castor, JAXB etc.
 
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XMLBeans
 
reply
    Bookmark Topic Watch Topic
  • New Topic