Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rendering XML in browser

 
neetu shri
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I want to render content from multiple xml files in browser, what technologies can I use? I wuld like to see the content in a report/table format when rendered in browser.

The environment currently has Active Perl available. But I can install other software if needed.

I wuld like to know the possiblities so I can do some learning/research in the right direction.
Can someone point me to possible solutions?
Thank you
 
Dawn Charangat
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Neetu,

Do you really need new softwares for this ?

I mean, if all you need is to represent an xml file contents in a table/report, can't we just make use of Javascript to parse the
xml at browser level and display it as a table, at runtime ? Thats what the traditional Ajax approach was all about, right?

Dawn.

 
Paul Clapham
Sheriff
Pie
Posts: 20715
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can transform XML to HTML (tables or whatever you like) using XSLT. You could do this on the server using an XSL transformer, or you could have the browser do it by inserting a suitable processing instruction at the beginning of the XML.
 
neetu shri
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used XSLT as processing instruction in an xml file. But if I have say f1.xml, f2.xml ...fn.xml and want to get data from all these files to display in a table format ---how do i do that? using xslt, i could do it with a single xml file.
thanks.
 
Paul Clapham
Sheriff
Pie
Posts: 20715
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to look into the document() function.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic