wood burning stoves*
The moose likes JSP and the fly likes Display XML tag using JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display XML tag using JSTL" Watch "Display XML tag using JSTL" New topic
Author

Display XML tag using JSTL

jay lai
Ranch Hand

Joined: Apr 04, 2002
Posts: 180
I have a file contain the whole xml file as a long string. I want to display to the browser in "readable" format of these nodes.

How do I do this? Many thanks to your help!

For example: file call file.xml , inside the file is the concatenate of all the xml tag together as a long string

I want to dispay on the browser as regular format xml tag like below:

[ April 17, 2007: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

You will need to write code to reformat the XML to your requirements.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Display XML tag using JSTL
 
Similar Threads
XML / XSL problem
How to save values in a database in JSTL?
DOM parsing
Typo mistake in SCWCD Study Kit Book?
System and Doctype