Results 1 to 5 of 5

Thread: XML with Java

  1. #1
    AndrewM16921 is offline Senior Member
    Join Date
    Jan 2009
    Location
    CA, USA
    Posts
    264
    Rep Power
    6

    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
    CA, USA
    Posts
    264
    Rep Power
    6

    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,316
    Blog Entries
    1
    Rep Power
    26

    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 Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,304
    Rep Power
    20

    Default Re: XML with Java

    Moved from New to Java

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

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

Posting Permissions

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