XML
  Home arrow XML arrow Page 2 - 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  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
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 - Reasons to Use XML


    (Page 2 of 4 )

    So now that you know a bit of the background of XML, the only real question left is why should you use it?  To start with, it's extremely easy to learn and the specification for it is extraordinarily small, which means it is portable and very fast.  It can be used as a kind of data store with HTML used to present the data.  This makes updating your site easier; you can just update the stored data and these changes are reflected in your web page instantly. 

    It supports the HTML linking specification, but also contains its own, more powerful linking specification XLINK, and XPOINTER.  Similarly, it can be presented using CSS styling, but also comes with its own style implementations, XSL (eXtensible Style Language) and XSLT (eXtensible Style Language transformations). 

    Possibly the best reason for using it is that it is a meta-markup language, which means that it can be used, fundamentally, to create new mark-up languages.  The power of this feature is phenomenal and provides almost limitless applications of the language. Are you convinced yet?  Good.

    Two Types of XML Documents

    Before we create an XML document of our very own, one more thing to note at this point is that there are two types of XML documents: valid documents and well-formed documents. Every XML document needs to be well formed but not every document needs to be valid. To expand on this: a well-formed document conforms to the syntax and rules of XML; if it does not do this, it will not work.  But in order to be a valid (or validated as the correct term goes) document, it must contain either an internal Document Type Definition (DTD), reference an external one or a combination of both.  For future reference, internal DTD's take precedence over external DTD's.  If you don’t know what a Document Type Definition is, don't worry, I'll cover this shortly. 

    One point to make at this, er, point, is that XML is a lot stricter than HTML in its syntax, which fits in nicely with one of the design goals.  For one thing, every tag must have an end tag, including empty tags.

    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

    - 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
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT