• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A newbie's question

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Recently I'm working on a project as requested by my lecturer.
It's a simple website which need to use Java, XML and a database.
Now the Java part is used in JSP, and for the database I have chosen MySQL.
The question that keep comes to my mind is that, why do I need XML? Why can't I use just JSP with MySQL?
I did try ask the question from my lecturer. He said there's a lot of resources online and asked me to find out myself. Up till now, the only reason I can think of is that, if in the future I want to implement the same website on WAP technology (or others such as ASP), I only need to come out with the application that interact with XML without it touching the database.
Is this a valid reason?
Any other reason for the usage of XML here?
What are the usage of XML in other applications?
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can read the benefits of using xml from many xml articles. Here are what I think (of course there would be more...)
1. self representation
2. hierrachial structure
3. universal data structure.
4. html enhancemen. xml you can convert to html, wxl, java object and vice versa, other xml.
5. store objects. serialize java, c++ object to xml.
reply
    Bookmark Topic Watch Topic
  • New Topic