This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display XML tag using JSTL" Watch "Display XML tag using JSTL" New topic

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

Joined: Jan 10, 2002
Posts: 63349

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Display XML tag using JSTL
It's not a secret anymore!