What is XML ?


XML is not limited to the a predefined set of tags such as HTML but allows the creation of customised tags. The advantages of using XML are flexibility for data and web page integration, open standards not controlled by any particular software company plus enhanced scalability and compression in web page delivery. Order is not relevant to XML. All elements must be contained within other elements. Thus one can not end the WeatherForcecast element prior to the ending of a report element for instance.

These links show the XML document below as code in the Internet Explorer and as the client browser would.

<?xml version="1.0"?>

<WeatherForcecast date="2/1/2004">

	<city>
		<name>Frankfurt</name>
		<temperature>
			<min>43</min>
			<max>52</max>
		</temperature>
	</city>

	<city>
		<name>London</name>
		<temperature>
			<min>31</min>
			<max>45</max>
		</temperature>
	</city>

	<city>
		<name>Paris</name>
		<temperature>
			<min>620</min>
			<max>74</max>
		</temperature>
	</city>

</WeatherForcecast>

XML, Server-Side Scripting Languages and Persistent Storage

XML allows for the generation of an XML document at the server from database storage. This XML document is passed to the client. The client can personalise XML document and allow changes to the XML document. At that point the XML document, with potential changes, can then be passed back to the server to update the database with changes made to the XML document made at the client. XML documents can even be stored in the database as a text object, including changes to that XML document made at the client.