XML
  Home arrow XML arrow An Introduction to XML
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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? 
XML

An Introduction to XML
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2004-09-13

    Table of Contents:
  • An Introduction to XML
  • Reasons to Use XML
  • A Basic XML Example
  • Create Items in the XML File

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


    An Introduction to XML


    (Page 1 of 4 )

    If you need convincing as to why to use XML, Dan Wellman can tell you. He gives a little background, some details on its ease of use, and a basic example to demonstrate the qualities of XML.


    Support files are available here for this article.


    You may or may not have heard of XML: however, since you're reading this, you are probably at the very least an amateur/enthusiast web developer, and XML is possibly one of the most innovative and enhancing web development tools around. So if you haven't heard of it, shame on you!  

    XML, which stands for eXtensible Markup Language, started life in February 1998 as a humble W3C recommendation, although it was first conceived as early as 1996.  It was created specifically by the W3C XML Working Group, which consisted of major industry players such as Sun, Microsoft, HP and Netscape to name but a few and was hailed at the time as "a key technical advance in web technology" according to the accompanying press release.  

    It was brought into existence partly as an answer to the growing limitations of HTML and also to introduce an open standard of web interoperability and data sharing.  It was also intended to separate the structure of data from its format; where HTML is intended for the presentation of information on the web, but not the type or structure of said information, XML is geared entirely towards the structure and not the presentation of data.  HTML and XML could easily be viewed as the Yin and Yang of web-development. 

    The original ten design goals that the associated XML developers set out to meet were:

    • XML should easy to use over the Internet

    • It should be able to support a wide variety of applications

    • It should be compatible with SGML (Standard General Markup Language)

    • It should be easy to write applications that process XML documents

    • The number of optional features should be kept to an absolute minimum

    • XML documents should be human-legible

    • It should be formal and concise

    • XML documents should be easy to create

    • There should be few if any coding shortcuts

    • And the specification should be prepared quickly.

    Anyone who has used XML will know that these aims were largely met: Ease of use over the Internet was ensured by using existing Internet protocols. It can support a wide variety of applications, for example, it can be used to create databases and word processors that are used independently of the 'net.  In addition to being compatible with SGML, it is a subset of it, meaning basically that it is a simplified version of it.  Developers have been quoted as saying that a typical college student could write an XML Interpreter in just two weeks, which would certainly meet the aim of being easy to write applications using XML. 

    Optional features were kept to a minimum to ensure compatibility between documents and applications.  HTML is easy enough to read and understand, provided you a little knowledge of the language, XML is easier to read and interpret by a factor of ten; anyone with no experience of XML at all can open an XML document and easily see what is going on. This also means that simple text editors can open XML documents rather than just web browsers or dedicated applications.

    In order to keep it formal, the specification for XML was written in compliance with the Extended Backus-Naur Format, which provides a standard notation used to express the syntax of programming languages. It is easy to create an XML document: you can use a simple text editor such as Notepad, and the syntax of XML involves plain ASCII text.  There are no coding shortcuts in XML, unlike SGML. XML was indeed developed very swiftly; this was necessary to prevent individual companies or organisations developing their own propriety standards of the language.  If this goal had not been met, we would now no doubt be innocent bystanders to a situation similar to the Java Virtual machine / Microsoft Virtual Machine war between Sun and Microsoft.   

    More XML Articles
    More By Dan Wellman


       · Be a great way to display items contained in an xml file, it it only worked in...
       · It is a very good and concise article. Anyone starting to learn XML schould read it....
       · I downloaded the source files for this example and they were different than what was...
       · thanks for the tutorial, and I did get it working, but there would not have been a...
     

    XML ARTICLES

    - Using Regions with XSL Formatting Objects
    - Using XSL Formatting Objects
    - More Schematron Features
    - Schematron Patterns and Validation
    - Using Schematron
    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE







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