Results 1 to 3 of 3

Thread: Java and Xml

  1. #1
    dev005 is offline Member
    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    Default Java and Xml

    what is the best way / technology to convert / unmarshal xml to object and vice versa?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Java and Xml

    The usual way is JAXB.
    But that assumes you actually need Objects that represent the structure of the XML so you can do things with them.
    If you just need to move data from A to B without much work then stream it.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: Java and Xml

    Moved from Advanced Java.

    Please go through the Forum Rules -- particularly the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Posting Permissions

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