XML

XML

Written

XML

  • XML stands for eXtensible Markup Language.
  • XML is similar to HTML.
  • XML tags are not pre-defined. You create and define them using DTD.
  • XML documents are saved as text files with the .xml extension. The main difference between HTML and XML is action. XML will describe data, HTML will display data. XML will structure, store and send data information.

HTML uses a set of pre-defined tags. <p> <div> <br> and so forth. XML allows you to define and use your own tags.

The tag names may be almost any word you can think of. It can be a combination of letters, numbers, and underscores. It should be descriptive to make it easy for you to understand what the area is. It cannot start with the letters XML and must start with a letter or underscore.

XML Syntax:

  • There must be a "root" or main tag set surrounding all others.
  • Correct nesting of tags is essential. No overlapping.
  • CaPiTaLiZaTiOn is important.
  • Property values must be "quoted"
  • Ending of tags is required.
  • XML comments are the same as HTML comments. <!-- text -->

Table of Contents