aspose file tools*
The moose likes XML and Related Technologies and the fly likes Beginner question: When to use XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Beginner question: When to use XML" Watch "Beginner question: When to use XML" New topic
Author

Beginner question: When to use XML

Rashmi Banthia
Ranch Hand

Joined: Dec 22, 2003
Posts: 79
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

Joined: Dec 02, 2003
Posts: 385
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

Joined: Dec 02, 2003
Posts: 385
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

Joined: Dec 22, 2003
Posts: 79
Thanks for the info!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginner question: When to use XML
 
Similar Threads
Questions about my JEE application
Question regarding the Database for my webproject.
time estimate for jdbc work?
JSP/Servlets!
Translation and language comparison