Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > xml file reading in java /deserialization in java

Thread Tools

xml file reading in java /deserialization in java

sowmyask sowmyask is offline
Junior Member
Join Date: Apr 2009
Posts: 1
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.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a file and resuming reading. Karim Ali Python 2 05-25-2007 02:04 PM
UnauthorizedAccessException when reading XML files (no problem when reading other file-types) ASP .Net 0 09-15-2006 02:08 PM
Problem to insert an XML-element by XSLT-converting from one XML-file into another XML-file jkflens XML 2 05-30-2006 09:41 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
reading the DB vs. reading a text file...performance preference? Darrel ASP .Net 3 11-11-2004 02:27 PM