XML

Extensible Markup Language (XML) is a W3C standard for creating custom markup language to representing structured data in text.

Characteristics of XML

  • Simple and Plain Text
    • Easy to read and understand both for humans and computers
    • Supports “all” platforms and programming languages
    • Supports multi-lingual documents
  • Self-description
    • Meta data in the form of tags and attributes
    • Simplifies tools/programs development
  • Open
    • Widely adopted World Wide Web Consortium (W3C) standard since 1998
  • Extensibility
    • No fixed set of tags. New tags can be created as they are needed.
    • Can express complex messages.


Sample XML

&lt;?xml version=<span class="code-quote">"1.0"</span> encoding=<span class="code-quote">"UTF-8"</span>?&gt;
&lt;Bio&gt;
     &lt;Name&gt;
        &lt;First&gt; John &lt;/First&gt;
        &lt;Last&gt; Smith &lt;/Last&gt;
     &lt;/Name&gt;
     &lt;Company current=<span class="code-quote">"Yes"</span>&gt;
         Acme Open Source Software Center
     &lt;/Company&gt;
&lt;/Bio&gt;


Useful Links