XML is eXtensible Markup Language. It's like HTML (HyperText Markup Language), but you can define the tags yourself.
It's very easy to
output an XML file. It's just a text file (and human readable at that) with an XML header line, and tags of the form <tag>data</tag>. Tags may be nested and/or have attributes (<tag attrib1="stuff" attrib2="morestuff">) associated with them. One proviso, you must have one tag which "wraps" all the other tags.
For example, if you're doing a book database, your wrapper tag might be <library>, like this:
Code:
<library>
<book> </book>
<book> </book>
<book> </book>
</library>
Depending on what language you're using to
read an XML file, that process can be easy or hard. Languages such as PHP have libraries that you just pass a filename, and it builds a data structure ready for you to manipulate. There's even a language, XSLT, which exists purely to manipulate XML files. On the other hand, if you're using an ancient C compiler, you may have to find a copy of the Expat library and learn about push vs. pull and other concepts which aren't relevant with modern DOM (Document Oriented Model) methods.
For "everyday" webpages, XML is pretty much unnecessary.
What XML can help you do: eCommerce. Data driven web pages which aren't complex enough to require SQL.
Give me some guidance here or I'll babble for ages...