wood burning stoves 2.0*
The moose likes Java in General and the fly likes Display the contents from an xml document in a web page 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 » Java » Java in General
Bookmark "Display the contents from an xml document in a web page" Watch "Display the contents from an xml document in a web page" New topic
Author

Display the contents from an xml document in a web page

binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Hi Everybody,

I have an simple requirement of displaying the contents of an xml document one node at a time in a webpage. Kindly suggest the best way to do it. I am not able to zero in on the method to be used like applet / jsp/ any other means.

Your opinions will help me in getting to start the coding.


Note:- In the xml one of the node contains the image in binary format. i need to display even that. and more over at the end of the project i need to display the full image with zoning to the image co-ordinates in the XML nodes.

Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Create a simple html document and print the xml content in that, replace < and > with &lt; and &gt;


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Hi,

Printing the xml to html will not solve the issue. within the xml i have base64 encoded binary format image and the value associated with it to the webpage.

I had done the code with applet, but when running the applet in a web browser i had faced some issues.

Thats is why i have doubts over the technology i have chosed.

Could like to get your opinion on this

Binu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display the contents from an xml document in a web page
 
Similar Threads
Save XML nodes in a String array for ChooseNodes
Displaying document contents
Root node
Get data by Matching ID's from two different XML documents
Display first 5 nodes of result tree?