Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-28-2007, 02:27 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
xml to java bean
I have a silly question:

how can I convert a xml file to java bean? are there some examples? or tutorial?
I'll appreciate your help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2007, 02:37 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
you need to use xml parser.java provide xml parser class. you can use those class for parsing your xml file and get the value of tag and contain of the tag as well as subtag of xml file.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 02:39 PM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Handling the XML once it has been received is pretty straight forward. You can use for instance JAXB to create Java objects based on the XML data. JAXB is part of the JWSDP. This will work for amounts of data that are small enough to fit in memory. If you want to process larger data sets, using a SAX parser is probably best.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extracts a java bean object from the XML file Java Tip java.io 0 04-06-2008 08:44 PM
How to use Inner bean definitions via nested bean elements Java Tip Java Tips 0 03-30-2008 11:03 AM
Trying to get my Java Bean to access a parm that I'm passing via a jsp? 72dolfan JavaServer Faces 1 03-13-2008 03:36 PM
property of a java bean suloverboy New To Java 3 12-14-2007 10:31 PM
How to use Inner bean definitions via nested bean elements JavaBean Java Tips 0 09-26-2007 09:36 PM


All times are GMT +3. The time now is 12:07 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org