XML
  Home arrow XML arrow XML Basics
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

XML Basics
By: Mamun Zaman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 26
    2007-09-05

    Table of Contents:
  • XML Basics
  • XML Tags and Conventions
  • More on Elements
  • XML Schema

  • 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


    XML Basics


    (Page 1 of 4 )

    When I first heard about XML, I thought it was something similar to HTML. Needless to say, I was wrong. XML and HTML were designed with different goals. XML was designed to describe data and HTML was designed to display data. In this article we will try to learn some basics about XML. Then we will learn about DTD and XML schemas.

    XML stands for eXtensible Markup Language. XML is used to aid the exchange of data. The language makes it possible to define data in a structured way. XML tags are not predefined like HTML. XML lets you create your own unique tags that are meaningful for your data, hence the use of the term "extensible."

    An XML document does not do anything by itself. It is just pure information wrapped in tags. You have to write a piece of software to send, receive or display it. XML is recommended by the World Wide Web Consortium (W3C). 

    Using XML, data can be exchanged between incompatible systems. One of the biggest challenges for developers has been to exchange data between different systems over the Internet. By converting the data to XML, developers can greatly reduce this complexity and create data that can be understood by different types of applications.

    XML is a meta-language. A meta-language is a language that's used to define other languages. You can use XML, for instance, to define a language like WML. XML is also used in SOAP and WSDL. XML has become popular to use with web services.

    <?xml version="1.0" ?>
    <bookstore>
      <book>
        <title id="1">XPath Tutorial</title>
        <author>Mamun Zaman</author>
        <year>2007</year>
        <price>00.99</price>
      </book>
      <book>
        <title id="2">AJAX Tutorial</title>
        <author>Charles</author>
        <year>2007</year>
        <price>03.45</price>
      </book>
    </bookstore>

    Above is an example of an XML document. The first line of this document is the processing instruction which indicates it is an XML document. This XML declaration also defines the XML version. In this case the document conforms to the 1.0 specification of XML.

    An XML document must have a root element. Here <bookstore> is the root element. In the above XML example, <book> is a tag and has 4 child elements – title, author, year and price. The <title> tag has an attribute named "id." Attributes are name-value pairs.

    More XML Articles
    More By Mamun Zaman


       · its very good to understand how and why the xml is used extensivly hope it is more...
       · Whenever i think about XML i think it's too hard by reading these article i get some...
     

    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 2 hosted by Hostway
    Stay green...Green IT