Results 1 to 3 of 3
  1. #1
    Peter is offline Senior Member
    Join Date
    Jun 2007
    Posts
    119
    Rep Power
    0

    Default 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 :)

  2. #2
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default

    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.

  3. #3
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    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.

Similar Threads

  1. Replies: 0
    Last Post: 04-06-2008, 08:44 PM
  2. Replies: 0
    Last Post: 03-30-2008, 11:03 AM
  3. Replies: 1
    Last Post: 03-13-2008, 03:36 PM
  4. property of a java bean
    By suloverboy in forum New To Java
    Replies: 3
    Last Post: 12-14-2007, 10:31 PM
  5. Replies: 0
    Last Post: 09-26-2007, 09:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •