aspose file tools*
The moose likes XML and Related Technologies and the fly likes reading xml file in java and displaying contents of that xml file on my web page 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 "reading xml file in java and displaying contents of that xml file on my web page" Watch "reading xml file in java and displaying contents of that xml file on my web page" New topic
Author

reading xml file in java and displaying contents of that xml file on my web page

sarath gowd
Greenhorn

Joined: Sep 19, 2011
Posts: 13
Hi all,
I have an XML file which contains folder details and files details. One folder is containing sub folders and files.
i need to retrieve all those files and folders in java and and i should display those files and folders on a web page in a tree structure.
I need an API for this requirement.
Plase Help Me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42635
    
  65
Barring further information I'd say any API will do - DOM, SAX, dom4j, JDOM, XOM, ...


Ping & DNS - my free Android networking tools app
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 544
    
    3
I need an API for this requirement.

Instead of an API, I can only send you the name of one single enabling technology which is the XSLT. That would be the basic use case of XSLT of transforming xml to (x)html. Search for its tutorials out-there. There would be more than you can digest in one go. And then XSLT can be called upon programmatically by java and plenty of other languages or commandline utilities.
Balaji Vankadaru
Ranch Hand

Joined: May 31, 2013
Posts: 47
JaxB could be used to convert your xml content into Java.

Later you can jsp usebean you can display your content in your web page.

Off course xslt, or dom or sax would still serve the cause too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: reading xml file in java and displaying contents of that xml file on my web page