File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Head First Android this week in the Android forum!
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: 19693

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="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: XML Doubt
It's not a secret anymore!