Hi Patrick:
i also had similiar questions not too long back. In a nutshell, XML (X stands for extensible), extends the capability of html.
The tags in html are basically designed for presentation and are fixed by specification. For example, bold, table etc. define how your content will appear in a browser. However html tags give you no clue about the "data" in your content. Nor can you add other tags, or else the browser will be confused.
However, in xml you can make up your own tags and can also define the "grammer" of your tags. If your content is description of a library catalog, you can have tags such as <book>, <author>, <contents> etc.
What makes xml so useful is that it is quite simple and intutive. With the help of commonly available parsers, you can read your documents on any platform: windows, unix, mac etc. Moreover, with the help of stylesheets that go with the xml documents, you can present them in any format that you like (html, text, pdf etc).
So xml is a good choice if you want to collect/exchange data and it can do this in a platform-independent way. Xml can also be used to present this data in different formats. This is becoming an important application of xml: just by having different stylesheets, one can show the same document in a browser or in wireless devices. Xml is also used as "glue", a middleware to connect data from differnet sources.
And your last question, why xml and
java go together so well? XML is platform-independent way to hold and transfer data, whereas java provides a platform-independent way to manipulate that data and develop applications that can use/modify the "data" in xml.
Hope this helps. Best way to appreciate and learn it is by applying it in a practical application that you might have. I highly recommend java and xml by brett mclaughlin and am anxious to read the new book by daconta and saganich promoted in this forum.
good luck.
yatin
Originally posted by Patrick Lentz:
Okay a real basic question or actually three...I hear more and more about XML. What exactly is it? What can I do with it? Should I get into it? Also it seems that XML is often used together with Java..any special reasons?
Sorry to ask these beginner questions
Patrick