What is XML

Q

What is XML?

✍: Guest

A

XML (Extensible markup language) is all about describing data. Below is a XML which describes invoice data.

<?xml version="1.0" encoding="ISO-8859-1"?>
<invoice>
<productname>Shoes
<qty>12
<totalcost>100
<discount>10
</invoice>

An XML tag is not something predefined but it is something you have to define according to your needs. For instance in the above example of invoice all tags are defined according to business needs. The XML document is self explanatory, any one can easily understand looking at the XML data what exactly it means.

2007-10-31, 5032👍, 0💬