Results 1 to 5 of 5

Thread: XML with Java

  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    183
    Rep Power
    5

    Default XML with Java

    Hey,

    I've been looking around the internet for the best api to work with xml in java (preferably one included in the jdk, if one exists). I heard SAX was probably my best choice, but when looking for tutorials on using the api I didn't find a whole lot of relavent stuff. I ended up writing my own xml parser at one point (a while ago), but I'd much rather use a standard. I don't know how they work, though. Mine would just load it into memory in a tree structure, and I had methods like addChild(node) and setAttribute(key, value), save it as needed, and things like that. So, any advice you can give, I'd appreciate it.

    Thanks,
    Andrew

  2. #2
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    NJ, USA
    Posts
    183
    Rep Power
    5

    Default Re: XML with Java

    Nvm, I found a nice article on DOM.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,252
    Blog Entries
    1
    Rep Power
    24

    Default Re: XML with Java

    If you need to transform XML into objects and visa-versa, read up on JAXB as that's probably the slickest Java interface with XML.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,929
    Rep Power
    16

    Default Re: XML with Java

    Moved from New to Java

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  5. #5
    object is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default Re: XML with Java

    xstream

Posting Permissions

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