XML Tutorial

XML (eXtensible Markup Language) is used to store and carry data with HTML.

XML Tutorial

Learn XML with this interesting and complete CSS tutorial, quickly and easily. Useful for all beginners, this tutorial explains the basic to advance concepts of XML with examples.

Who is this XML Tutorial designed for?

This tutorial will be very useful for all beginners who want to be web developers and web designers. Freshers, BCA, BE, BTech, MCA, college students will also find it useful to develop notes, for exam preparation, lab exercises, assignments and viva questions.

What do I need to know to begin with?

Before starting with XML, you will need to know HTML and Javascript so that you can understand the applications of XML well.

XML syllabus covered in this tutorial

This tutorial covers:

XML Structure, XML With CSS, XML with Data Source Object, Document Type Definition, Schemas, Namespaces, Transformation Style Sheet, Parsers, Documents and Database.

Knowing all these topics will give you a good start with XML. So, let's begin with the tutorial!

XML

  • XML stands for Extensible Markup language.
  • It was developed by W3C ( World Wide Web Consortium).
  • XML is a self-descriptive language.
  • XML is used to store and carry data.

Applications of XML

Mobiles: XML is used to display the text, images and sounds in the mobile softwares.
Converters: Converters are used to convert existing documents into XML format.
Example: PDF to XML.
Voice XML: Converts the XML documents into an audio format.

Features of XML

  • XML provides domain specific self describing tags.
  • It carries data with HTML.
  • XML allows interchanging of data between different computer application.
  • User defined tags in XML allow to search.

XML vs HTML

XMLHTML
Designed to transport and store data.Designed to display data.
Provides granular update facility.Granular update facility is unavailable.
XML is case sensitive.HTML is not case sensitive.

Writing and Viewing XML

  • Write XML code in the notepad and save with .xml extension.
  • To view XML file, open it in web browsers.