File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Doubt

 
Edward Durai
Ranch Hand
Posts: 223
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello sir,

i am java developer. i have one doubt. i have one table with id and xmldata. here xml data is in xml format.

i have sample application. how to get each node using parsers. in this example xml files are stored in file format. not in database.

for eg.
File xmlFile = new File("C:/Documents and Settings/edward/Desktop/contact1.xml");

but I have xml in Database.

My question is how can I can pass like
File xmlFile = new File("C:/Documents and Settings/edward/Desktop/contact1.xml");

or any ideas?

Thanks

edward
 
Paul Clapham
Sheriff
Pie
Posts: 20184
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get the data from the database into a String. (I assume you can deal with this part of the job.) Then parse from the String something like this:
 
Clifton Craig
Ranch Hand
Posts: 103
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward,

I responded to your question yesterday on the very same topic. Click here for the topic.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic