• Post Reply Bookmark Topic Watch Topic
  • New Topic

Display XML content  RSS feed

 
Jitender Kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to display XML content in any of the JSF components? The display should be similar to the way an XML document is displayed in browser.

A quick response is appreciated.

Thanks,
Jitender.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need XML renderers for the tags. You're probably better off just calling a servlet and having the servlet put out a text/xml response instead.

The XML formatting you're used to seeing in most web browsers is actually based on whether or not you pair it with a display XSLT. If you do not, a default XSLT is often used. In Internet Explorer, that's how you get the "click-to-collapse" outline view - the default XSLT transform attaches some DHTML display magic to the page.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!