<!--
XML - used to describe data and data structures. Commonly used for exchanging data between applications, including communicating with applications that use different languages. Also commonly used for configuration files. XML is also used for data storage. XML is case sensitive.
-->
<!-- Basic structure of XML -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<order id="123456" date="2015-01-01">
<salesperson id="123">
<name>Naomi Sharp</name>
</salesperson>
<customer id="921">
<name>Dan Drayton</name>
</customer>
<items>
<item id="561" quantity="1"/>
<item id="127" quantity="2"/>
</items>
</order>
<!--detail of XML structure -->
<!-- processing instruction, not part of data structure, used by client application which loads the XML file-->
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- element, anything that has a beginning tag and an end tag. The root element below is order, which contains salesperson element, which in turn contains a name element. There can also be text, which is the value in-between the element's beginning tag and end tag. There can also be an attribute, which is something within a tag that can be assigned a value. A well-formed XML document is one that contains a single root element that contains all of the other elements. -->
<order id="123456" date="2015-01-01">
<salesperson id="123">
<name>Naomi Sharp</name>
</salesperson>
<customer id="921">
<name>Dan Drayton</name>
</customer>
<items>
<item id="561" quantity="1"/>
<item id="127" quantity="2"/>
</items>
</order>