Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Doubt

 
Edward Durai
Ranch Hand
Posts: 223
  • 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
Posts: 20713
29
Eclipse IDE Firefox Browser MySQL Database
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic