XML is a method of encoding data independent of its representation. The tags in XML tell the various rendering programs what each "field" is called and what the value for that field is.
The rendering program will then go through and pick and chose which tags and values it will display.
For example, you could have a file of newspaper articles like this (snippet, not full file)
<article loc=1>
<title>Boy Bites Dog</title>
<byline>John Jones</byline>
Jimmy Smith ate a hot dog today.
</article>
<article loc=2>
<title>Freak Accident</title
<byline>Joe Smith</byline>
A parked car struck a truck traveling in the 3rd lane of Main Street last night.
</article>
One PHP or XSL page could parse through looking for Title and Byline (and the loc attribute) and create a list of links which would start another PHP page which would display the full text of one story.
Output of first page: (fragment only)
<a href=secondpage.php3?loc=1>Boy Bites Dog, by John Jones</a>
<a href=secondpage.php3?loc=2>Freak Accident, by Joe Smith</a>
Output of second page, loc=1: (fragment only)
<h1>Boy Bites Dog</h1>
<h2>by John Jones</h2>
<p>Jimmy Smith ate a hot dog today.</p>
Two one line stories doesn't look like such a big deal, but think of the implications for several hundred one to 20 paragraph stories.
Try
for a free magazine subscription. It will help you find out what tools and methodologies and concepts are in use and under development.
Rose/Miros