| | |
xml deserilization
![]() |
•
•
Join Date: Apr 2009
Posts: 5
Reputation:
Solved Threads: 0
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.
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.
![]() |
Other Threads in the Java Forum
- Previous Thread: Help with breaking out of a scanner.hasnext
- Next Thread: question regarding Java reflection in Junit
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class client code color compare component coordinates database detection doctype eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java java.xls javaexcel javaprojects jni jpanel jtextarea julia keytool keyword linux list loop map method methods mobile netbeans newbie nextline object pong print problem producer program programming project projectideas read recursion recursive replaysolutions rim scanner sell server set size sms sort sql string swing terminal threads tree web websites windows





