• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Beginner question: When to use XML

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the info!
 
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic