xml file reading in java /deserialization in java

Discussion in 'Software' started by sowmyask, Apr 15, 2009.

  1. sowmyask


    Apr 15, 2009
    Likes Received:
    Please help me, I am new to Java .
    My xml file structure is as follows---
    <Input NAME ="asasa" DATA="sasas"/>
    I have generated the classes for the xml file using the commmand xjc.
    Now I need to fetch the data from the xml file and put them in the hash table.
    I tried with the decoder I got the exception java.lang.Exception: "Unrecognized opening tag: SP " the same exception was repeted to all the elements/tags of the xml file.
    Please anyone get me out of this. Is there anything(crisp nad easy way) similar to serialization in .Net.
    sowmyask, Apr 15, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.