Computersight > Programming > XML

XML Tutorial

A quick tutorial for using XML.

XML (Extensible Markup Language) is comparatively one of the easiest languages to code. Like HTML, all titles must appear within tags such as:

 

A major difference in xml is that, you can write whatever you want within these tags, unlike in html where there was a specific dictionary of words that could be written.

In xml, every document should be started with the following tags:

This informs the computer that an xml document is being written. After these tags, you can go on and create more tags such as the first example I provided. Inside these sub tags, you can write whatever you want. XML is not a developer's language like html so, the coding that you write will mean absolutely nothing. Xml can be sort of thought of as a text database. Below is an example of a complete xml document:

 

  • example1.mp3
  • example2.mp3
  • example3.mp3

Even when writing XML documents, there are certain rules that must be followed.

All Elements Created Must have an Ending Element

  • Beginning Element
  • Ending Element

An element will not be complete until it's ending tag has been written. It is therefore very important to remember to end all your opening tags.

Tag Letters are Case-Sensitive

 

The above is not an element because the ending tag and opening tag do not start with the same case.

 

The above is a complete element because the ending and opening tags are both starting with the same case.

3
Liked It
I Like It!
Related Articles
A Short Introduction to XML  |  A Short Introduction to XML
More Articles by Litheron
Flash Tutorial 1
Latest Articles in XML
Creation of an Original and Memorable Logo  |  A Short Introduction to XML
Comments (0)
Post Your Comment:
Name:  
Copy the code into this box:  
Post comment with your Triond credentials?
Inside Computersight

Communication & Networks

 /

Computers

 /

Hardware

 /

Operating Systems

 /

Programming

 /

Software


Popular Tags
Popular Writers
Powered by
Computersight
About Us
Terms of Use
Privacy Policy
Services
Submit an Article
Advertise with Us
Contact

© 2007 Copyright Stanza Ltd. All Rights Reserved.