The XML Programming Language

An Invoice in XML Example


Click below to go directly to a specific section:
Description| Source Code| Sample Run

Description

This program shows an example of arbitrary tags and how they can organize a document. (The Sample Run requires that the browser has a built-in XML parser.)


Source Code

<?xml version="1.0" ?>
<!- Invoice from ABC Corp. ->
<invoice>
<orderID>12345</orderID>
    <orderDate timezone="Pacific">Sep 1, 1999 12:30:00 </orderDate>
        <billingAddress>
            <firstName>Boris</firstName>
            <lastName>Feldman</lastName>
            <street>123 Anywhere St.</street>
            <city>Anytown</city>
            <state>CA</state>
            <zip>95050</zip>
        </billingAddress>
</invoice>

Sample Run


12345
    Sep 1, 1999 12:30:00  	
        Boris 
	Feldman
 	123 Anywhere St. 
	Anytown
	CA
 	95050
 	 


[Back] [Home]

Last modified: 09:30 AM on 12/14/1999