• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginner question: When to use XML

 
Rashmi Banthia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that XML is a good solution when one application needs to exchange data with another application/system, because of predefined DTDs/XSDs.

Here is my question : What are the other application where I can use XML ?
(1) Is it a good idea to design my small personal web page using XML, then use XSLT or XSL-FO.

(My thoughts : I find it easier to use HTML directly. What are the advantages of using XML here?)

(2) How about a web based Time sheet system - This database application basically maintains employees hours worked and some personal info online and providing reports for hours worked etc.

Is it a good idea to use XML here with Java Servlets/JSP? Or HTML with JSP/Servlets Or any other better solution ?


Thanks a lot,
Rashmi
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is Cocoon framework. This link shows what it is to develop web app using XML:

http://cocoon.apache.org/2.1/tutorial/tutorial-develop-webapp.html

I will try it someday myself
 
Vladas Razas
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer your question: HTML is for static content only. To display dynamic data you have to generate HTML pages. You need web application. To generate your HTML you need some platform: PHP, JSP/Servlets, Cocoon, ASP etc.

If you need personal web page with static content only use pure HTML.
 
Rashmi Banthia
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic