xml deserilization

Reply

Join Date: Apr 2009
Posts: 5
Reputation: sowmyask7 is an unknown quantity at this point 
Solved Threads: 0
sowmyask7 sowmyask7 is offline Offline
Newbie Poster

xml deserilization

 
0
  #1
Apr 15th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC