xml file reading in java /deserialization in java

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

  1. sowmyask

    sowmyask

    Joined:
    Apr 15, 2009
    Messages:
    1
    Please help me, I am new to Java .
    My xml file structure is as follows---
    <Procedure>
    <SP>
    <ID>100</ID>
    <Name>Employee</Name>
    <Inputs>
    <Input NAME ="asasa" DATA="sasas"/>
    </Inputs>
    </SP>
    <SP>
    <ID>101</ID>
    <Name>Display</Name>
    <Inputs></Inputs>
    </SP>
    </Procedure>
    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
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tom Denford

    How to convert XML file to OPML File ...

    Tom Denford, Apr 24, 2005, in forum: Computer Support
    Replies:
    1
    Views:
    12,211
  2. datta.saru
    Replies:
    0
    Views:
    1,282
    datta.saru
    May 15, 2006
  3. Diplom Kaufmann Hinrichs -  Siegert, Knut

    Help in analysing and optimizing XML Data reading urgently (in the next weeks) required.

    Diplom Kaufmann Hinrichs - Siegert, Knut, Sep 16, 2007, in forum: Computer Support
    Replies:
    2
    Views:
    4,238
    Diplom Kaufmann Hinrichs - Siegert, Knut
    Sep 16, 2007
  4. java_newbie

    Java read xml file

    java_newbie, May 26, 2009, in forum: General Computer Support
    Replies:
    1
    Views:
    1,677
    torontolife
    Jun 4, 2009
  5. OhioHoya

    dataset reading XML error...

    OhioHoya, Apr 26, 2010, in forum: General Computer Support
    Replies:
    0
    Views:
    1,521
    OhioHoya
    Apr 26, 2010
Loading...

Share This Page