wood burning stoves
The moose likes XML and Related Technologies and the fly likes XML Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Doubt" Watch "XML Doubt" New topic

XML Doubt

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
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?



Thank You<br />Edward
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

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

Joined: May 26, 2006
Posts: 103

I responded to your question yesterday on the very same topic. Click here for the topic.

Holla at me...<br /><a href="http://codeforfun.wordpress.com" target="_blank" rel="nofollow">http://codeforfun.wordpress.com</a>
I agree. Here's the link: http://aspose.com/file-tools
subject: XML Doubt
It's not a secret anymore!