XML is designed to transmit and store data.
HTML is designed to display data.
XML elements syntax
An XML element refers to the portion from (and including) the opening tag to (and including) the closing tag.
An element can contain:
Other elements
Text
Attributes
Or a mixture of all of the above.. .
XML elements example
<bookstore> <book category="CHILDREN"> <title>Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> <book category="WEB"> <title>Learning XML</title> <author>Erik T. Ray</author> <year>2003</year> <price>39.95</price> </book> </bookstore>