• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Is XML the answer?

 
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am designing a new web service from scratch and I had a question about implementing XML as one of the pieces.
A user goes through a process which results in a desired data set. At this point, I want them to be able to print a fairly sohpisticated report, sophisticated meaning that it must be more professional looking than HTML typically presents and will have a lot of variable data elements including images.
The plan is to implement MVC with Servlets, Beans, and .JSP, and I wanted to know: is XML the way to go to provide the report?
Thanks
oops...forgot to add that I've only done a little Java (going through the cattle drive and reading some books now), and I don't really know much about XML (yet).
------------------
Joel Cochran
[This message has been edited by Joel Cochran (edited March 27, 2001).]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although still learning, I would say that XML by itself is not sufficient. XML is essentially a data representation; it does not really deal with the presentation aspect.
If you combine XML data with XSL Formatting Objects, you'll have the presentation (report) angle covered.
HTH
Ken
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read what Brett has to say regarding the "abuse" of XML.
http://www.flashline.com/content/mclaughlin/current.jsp
-Peter
 
Joel Cochran
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting reading, but I have to wonder if it applies to the model I outlined above? What I mean is that the article focuses on not using XML between two java layers (which makes perfect sense), but what I had in mind would be the last java piece, the .jsp, would read a dataBean and output XML presentation instead of HTML. Can that be done? Would that be an abuse of XML? Maybe I just have some generic misunderstandings about XML...

------------------

Joel Cochran
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!