XML
  Home arrow XML arrow Page 2 - Introduction To XML
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
XML

Introduction To XML
By: Gayathri Gokul
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 44
    2003-08-28


    Table of Contents:
  • Introduction To XML
  • Preparing Yourself For The Future!
  • The Name Says It All…..EXtensible:
  • Proof Is In The Output
  • Starting From The Roots of XML…
  • The Best Of Both The Worlds
  • The Potential Of XML
  • XML Parser

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Introduction To XML - Preparing Yourself For The Future!
    ( Page 2 of 8 )

    What Is Extensible Markup Language: Before we can learn what XML is, it’s 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 it’s 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 don’t 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 it’s 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 don’t imply formatting nothing is done and the tags are displayed as such.

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

       

    XML ARTICLES

    - 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...
    - Practical XML Data Design and Manipulation f...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek