XML Parsing Error: no element found (help? *puppy eyes*)

admin

Administrator
Staff member
I just started a course on xml and I am completely lost in a number of places. Just when I thought I figured everything out, I get this error:

XML Parsing Error: no element found
Location: file:///C:/Documents%20and%20Settings/Me/Desktop/xml%20assign/doc.xml
Line Number 79, Column 11:</invoice>
----------^

and here is my xml document:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"invoice.css"?>

<document xmlns:xlink = "http://www.w3.org/1999/XLink">
<!-- Invoice written by Kyla Cohen -->

<invoice>
<invoice-header>
<invoice-date>Sunday, September 19, 2005</invoice-date>
<payment-date>Sunday, September 26, 2005</payment-date>
<contract-number>4903-02</contract-number>
<currency>Canadian Dollars (CND)</currency>
<supplier-data>
<supplier-order-number>93900-022</supplier-order-number>
<supplier-name>Toyota Cars Ltd.</supplier-name>
<supplier-address>4903 No. 6 Road</supplier-address>
<supplier-city>Richmond</supplier-city>
<supplier-province>British Columbia</supplier-province>
<supplier-postal-code>v9j4g8</supplier-postal-code>
<supplier-country>Canada</supplier-country>
<supplier-telephone-number>604-276-0494</supplier-telephone-number>
</supplier-data>
<buyer-data>
<buyer-order-number>3044-9449-320</buyer-order-number>
<buyer-name>Russell Pope</buyer-name>
<buyer-address>5456 Grove Avenue</buyer-address>
<buyer-city>Delta</buyer-city>
<buyer-province>British Columbia</buyer-province>
<buyer-postal-code>v4k2a7</buyer-postal-code>
<buyer-country>Canada</buyer-country>
<buyer-telephone-number>604-946-9487</buyer-telephone-number>
</buyer-data>
</invoice-header>
<invoice-details>
<supplier-part-id>2005-Corolla</supplier-part-id>
<description>
<car-name>2005 Toyota Corolla</car-name>
<car-color>Red</car-color>
<car-door>4 Door</car-door>
<car-addons>Air Condition, CD Player, and Leather Interior</car-addons>
</description>
<quantity>1</quantity>
<unit-price>$25,000.00</unit-price>
<entended-amount>$21,000.00</entended-amount>
</invoice-details>
<invoice-details>
<supplier-part-id>2005-Celica</supplier-part-id>
<description>
<car-name>2005 Toyota Celica</car-name>
<car-color>Navy Blue</car-color>
<car-door>2 Door</car-door>
<car-addons>Air Condition, and CD Player</car-addons>
</description>
<quantity>2</quantity>
<unit-price>$23,000.00</unit-price>
<entended-amount>$46,000.00</entended-amount>
</invoice-details>
<invoice-details>
<supplier-part-id>2005-Scion</supplier-part-id>
<description>
<car-name>2005 Toyota Scion</car-name>
<car-color>Silver</car-color>
<car-door>4 Door</car-door>
<car-addons>Air Condition, CD Player, and Automatic Windows</car-addons>
</description>
<quantity>1</quantity>
<unit-price>$15,000.00</unit-price>
<entended-amount>$15,000.00</entended-amount>
</invoice-details>
<invoice-summary>
<subtotal>$82,000.00</subtotal>
<tax>
<tax-percent>15%</tax-percent>
<tax-amount>$12,300.00</tax-amount>
<taxable-amount>$82,000.00</taxable-amount>
</tax>
<total>$94,300.00</total>
</invoice-summary>
</invoice>


I can't figure out what's wrong or what I'm missing, any ideas? Thanks in advance!
 
Back
Top