• 0

Using Java to take in a XML file


Question

2 answers to this question

Recommended Posts

  • 0

For serializing objects, you might want to take a look at XStream: http://xstream.codehaus.org/

If external libraries aren't an option, you can use the built-in java classes for XML parsing:

http://www.mkyong.co...ava-dom-parser/

http://www.mkyong.com/java/how-to-read-xml-file-in-java-sax-parser/

You'll have to do any type conversions for numbers and such for the values inside the XML nodes this way though.

This topic is now closed to further replies.
  • Posts

    • Kioxia is Toshiba rebranded? Did not know that. 
    • I use to buy only Samsung and Crucial MX but things have change a lot in the last 5 years.   Western Digital Black ssd are very good. Corsair MP too (specially when it comes to gen 5) The Patriot 2TB Viper VP4300 Lite is a good cheap option with decent perf Crucial Txxx is pretty good too. I had bad exp with TeamGroup when they initially came out but i bought two TEAMGROUP T-Force Vulcan Z 2TB SLC Cache for my new computer because they were the cheapest 2 tb with any kind of cache and i've been pleasantly surprised.   You got to do your own research. Does it have dram cache? If yes which type of dram cache. Does it have a large SLC cache? If so how large is it? 20% of the drive? 30% of the drive? For example the TG 2TB i posted above has a 650GB SLC cache which is about 30% of the drive capacity. Is it TLC or QLC. I'd avoid QLC drive without any type of cache unless it's for storage they tend to perform badly with small writes. I'm not an expert so do your own research
    • Exactly my point , 4 Titles that are very popular and also OLD. Cyberpunk 2077 ,Battlefield 2042 , World of Warcraft, Counter-Strike 2. There will also be more that they have not listed. Maybe acceptable from a small developer to have issues with this sort of thing. Not the world's most valuable company.
    • The fact we need to have apps doing this dumb BS is insane. How about not shoving this nonsense down our throats in the first place? I literally know NO ONE that ever said "gee I wish I had a feature that screenshots everything I do on my computer, including sensitive, compromising or heavily private stuff every 2 seconds and neatly catalogs it somewhere on the drive". NO ONE. EVER.
  • Recent Achievements

    • Week One Done
      SmileWorks Dental earned a badge
      Week One Done
    • Community Regular
      vZeroG went up a rank
      Community Regular
    • Collaborator
      Snake Doc earned a badge
      Collaborator
    • Week One Done
      Snake Doc earned a badge
      Week One Done
    • One Month Later
      Johnny Mrkvička earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      580
    2. 2
      ATLien_0
      200
    3. 3
      Michael Scrip
      199
    4. 4
      +FloatingFatMan
      129
    5. 5
      Xenon
      124
  • Tell a friend

    Love Neowin? Tell a friend!