|
Home » Glossary » XML
XMLExtensible Markup Language is a format that allows for defining data in such a way that it can be easily transmitted and read. It is similar to HTML in that it uses a series of tags to define certain parts of data, but these tags can be anything where as in HTML you are limited to a certain set of tags. A sample XML file from WikiPedia.
<?xml version="1.0" encoding="UTF-8"?>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours"> <title>Basic bread</title> <ingredient amount="3" unit="cups">Flour</ingredient> <ingredient amount="0.25" unit="ounce">Yeast</ingredient> <ingredient amount="1.5" unit="cups" state="warm">Water</ingredient> <ingredient amount="1" unit="teaspoon">Salt</ingredient> <instructions> <step>Mix all ingredients together, and knead thoroughly.</step> <step>Cover with a cloth, and leave for one hour in warm room.</step> <step>Knead again, place in a tin, and then bake in the oven.</step> </instructions> </recipe>
|