XML Script logo next up prev
Using XML to describe data
Example XML data

This example shows a purchase order from an auto dealer which is to be sent to a manufacturer. Note that the indentations are included to aid readability but are not required. The XML consists of an Order element, or object, which itself contains Manufacturer and Model sub-elements. Within those elements, the details of the purchase order are described as a combination of attributes and element content. Save this XML to a file in the directory where X-Tract is installed, and name it PurchaseOrder.xml.

<Order DealerID="AB123" >
	<Manufacturer Name="Ford Motor Company" >
		<Address >
			<Street >The American Road</Street>
			<City >Dearborn</City>
			<State >Michigan</State>
			<ZipCode >48121</ZipCode>
		</Address>
	</Manufacturer>
	<Model Name="Mustang" >
		<Engine >1.8i</Engine>
		<Color >Black</Color>
		<Trim >Gold</Trim>
	</Model>
</Order>
Next...

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited