i need to create one application like...
Take input from a XML file, then Parse it, and insert into mysql database.
Could please send me the full samples of this issue.
I need urgent.. Could u please help me
xml parser for java http://download-uk.oracle.com/docs/cd/B14117_01/appdev.101/b10794/adx04paj.htm
example for xml parser http://download-uk.oracle.com/docs/cd/B14117_01/appdev.101/b10794/adx04paj.htm#i1041058
more on goooooooogle
My approach to this:
- Create a data object that can hold whatever data structure that's in your xml.
- Create a sax parser that parses the file into an object of the above class or a collection of them (you can probably find that in the links provided above)
- Store each object into the database (many ways to do this: plenty of JDBC or hibernate tutorials around..., allthough I wouldn't recomend hibernate in case you have a limited knowledge of java)
Good luck, hope you finish it in time!
Message was edited by:
Welcome to the forum. Please don't resurrect threads that are long dead, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
Before you post your question, I recommend that you read [How to ask questions the smart way|http://catb.org/~esr/faqs/smart-questions.html].
I'm locking this thread now.