This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Doubt" Watch "XML Doubt" New topic
Author

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?

Thanks

edward


Thank You<br />Edward
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
Edward,

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>
 
Consider Paul's rocket mass heater.
 
subject: XML Doubt
 
Similar Threads
How to create a JAXB Context from File System
doubt in returning an array from one class to another
a doubt
How to create JAXB Context from File System
XML to HTML Conversion using JAX-P, XSLT Processor