Home arrow XML arrow Page 2 - Introduction To XML

Preparing Yourself For The Future! - XML

It's a fact of life that XML, which stands for eXtensible Markup Language, is invading our lives more and more as programmers, and I feel this is a good thing. The reason being XML has the ability to cross all sorts of boundaries, and probably the only chance we have to obtain a truly independent, cross-platform data transfer format.

TABLE OF CONTENTS:
  1. Introduction To XML
  2. Preparing Yourself For The Future!
  3. The Name Says It All..EXtensible:
  4. Proof Is In The Output
  5. Starting From The Roots of XML
  6. The Best Of Both The Worlds
  7. The Potential Of XML
  8. XML Parser
By: Gayathri Gokul
Rating: starstarstarstarstar / 44
August 28, 2003

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
What Is Extensible Markup Language: Before we can learn what XML is, its a good idea to clarify what markup language is. Because, language is probably the wrong term. It is not a language in the sense that Visual Basic or C++ are languages, but its a set of rules that define how text documents should be marked up. Now we have to define what we mean by marked up. Marking up a document is the process of identifying certain areas of a document as having special meaning. In short markup language is just a set of rules that define how we add meaning to areas of a document.

The main difference between XML and HTML XML takes a different view from HTML, although it still uses tags, It is not a replacement for HTML. XML and HTML were designed with different goals. The major difference is that XML is designed to describe the structure of text, not how it should display. In short, XML was designed to carry data, to describe data and to focus on what data is. On the other hand HTML was designed to display data and to focus on how data looks. To put it in a line we can say HTML is about displaying information, while XML is about describing information. Let us take a simple example 1: Save it as .html

<body>

Hello !!
<h1> Welcome to the Web Age. </h1>
This is normal text. <b> while this is bold text.</b>
</body>
When you load the above html file into a browser, then it displays the above tags as though it were formatted document. Which will looks something like below
Hello!!
Welcome To The Web Age
This is normal text. While this is bold text.
However if the above text defines an XML document, then the tag dont mean anything. Say you load same file with .html extension (example 1) into the browser like IE but now with a .xml file suffix. Internet Explorer interprets this XML and displays it for us which looks like this
 <body>

Hello !!
<h1> Welcome to the Web Age. </h1>
This is normal text. <b> while this is bold text.</b>
</body>
But notice its done nothing with the XML just displayed it as such (except indents the tags to give a structured look). The browser knows how to interpret HTML and display it with all formatting. The browser also knows how to interpret XML, but in this case since XML tags dont imply formatting nothing is done and the tags are displayed as such.

 
 
>>> More XML Articles          >>> More By Gayathri Gokul
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

XML ARTICLES

- Google Docs and Xpath Data Functions
- Flex Array Collection Sort and Filtering
- The Flex Tree Control
- Flex List Controls
- Working with Flex and Datagrids
- How to Set Up Podcasting and Vodcasting
- Creating an RSS Reader Application
- Building an RSS File
- An Introduction to XUL Part 6
- An Introduction to XUL Part 5
- An Introduction to XUL Part 4
- An Introduction to XUL Part 3
- An Introduction to XUL Part 2
- An Introduction to XUL Part 1
- XML Matters: Practical XML Data Design and M...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: