File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 18991
    
    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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Doubt