Sandia Invoice 10

<?xml version=”1.0″ encoding=”UTF-8″?>

<!–
Rapid e-Invoice DTD
Version 1.0

(c) 2000 Sandia National Labs
Electonic Invoicing and Electonic Payment Information Task Force
For more info visit: http://www.sandia.gov/elecinvoice/home.html
–>

<!ELEMENT Invoice (InvoiceHeader,DutiesTaxes?,InvoiceDetail,InvoiceParties,AdditionalInvoiceInfo*)>

<!ELEMENT InvoiceHeader (InvoiceNumber,InvoiceDate,ReferenceData,CreditMemo?,TermsPaymentInfo,CurrencyCode,Freight?,OtherCharges?,AccountCode?, TotalAmount,InvoiceComments?)>
<!ELEMENT DutiesTaxes (TotalTaxAmount?,LineItemTotalTax?,OtherInvoiceHeaderTaxes?,TaxInformation?)>
<!ELEMENT InvoiceDetail (InvoiceLineItem*)>
<!ELEMENT InvoiceParties (CustomerParty?,BillToParty?,CustomerContactParty?,ShipToParty?,VendorSupplierParty?,RemitToParty?,ShipFromParty?)>

<!ELEMENT AdditionalInvoiceInfo (InfoName?, InfoDescription?)>
<!ELEMENT InfoName (#PCDATA)>
<!ELEMENT InfoDescription (#PCDATA)>

<!ELEMENT InvoiceNumber (#PCDATA)>
<!ELEMENT InvoiceDate (#PCDATA)>
<!ELEMENT CreditMemo (#PCDATA)>
<!ELEMENT TotalTaxAmount (#PCDATA)>
<!ELEMENT TaxInformation (#PCDATA)>

<!ELEMENT TermsPaymentInfo (PercentageDiscount?,DaysUntilDue?,DaysUntilDiscountExpires?)>
<!ELEMENT PercentageDiscount (#PCDATA)>
<!ELEMENT DaysUntilDue (#PCDATA)>
<!ELEMENT DaysUntilDiscountExpires (#PCDATA)>

<!ELEMENT CurrencyCode (#PCDATA)>
<!ELEMENT TotalAmount (#PCDATA)>
<!ELEMENT InvoiceComments (#PCDATA)>

<!ELEMENT ReferenceData (DocumentType?,PONumber?,PODate?,ReleaseNumber?)>
<!ELEMENT DocumentType (#PCDATA)>
<!ELEMENT PONumber (#PCDATA)>
<!ELEMENT PODate (#PCDATA)>
<!ELEMENT ReleaseNumber (#PCDATA)>

<!ELEMENT Freight (FreightTerms?,FreightInfo?,TotalFreightAmount?)>
<!ELEMENT FreightTerms (#PCDATA)>
<!ELEMENT FreightInfo (#PCDATA)>
<!ELEMENT TotalFreightAmount (#PCDATA)>

<!ELEMENT OtherCharges (OtherChargesAmount?, OtherChargesDescription?)>
<!ELEMENT OtherChargesAmount (#PCDATA)>
<!ELEMENT OtherChargesDescription (#PCDATA)>

<!ELEMENT AccountCode (AccountNumber?, JobNumber?, EstimateNumber?, Subledger?)>
<!ELEMENT JobNumber (#PCDATA)>
<!ELEMENT EstimateNumber (#PCDATA)>
<!ELEMENT Subledger (#PCDATA)>
<!ELEMENT AccountNumber (BusinessUnit?,Object?,Subsidiary?)>

<!ELEMENT InvoiceLineItem (LineItemNumber?, LineItemDescription?, ProductNumber?, ProductNumberType?, UnitPrice, UnitOfMeasure?, Quantity, LineItemTaxes?, FreightCharge?, OtherLineItemCharges?, LineItemComments?, StockNumber?, AdditionalLineItemInfo*)>
<!ELEMENT LineItemNumber (#PCDATA)>
<!ELEMENT LineItemDescription (#PCDATA)>
<!ELEMENT ProductNumber (#PCDATA)>
<!ELEMENT ProductNumberType (#PCDATA)>
<!ELEMENT UnitPrice (#PCDATA)>
<!ELEMENT UnitOfMeasure (#PCDATA)>
<!ELEMENT Quantity (#PCDATA)>
<!ELEMENT LineItemTaxes (#PCDATA)>
<!ELEMENT StockNumber (#PCDATA)>
<!ELEMENT FreightCharge (#PCDATA)>
<!ELEMENT OtherLineItemCharges (#PCDATA)>
<!ELEMENT LineItemComments (#PCDATA)>
<!ELEMENT AdditionalLineItemInfo (InfoName?, InfoDescription?)>

<!ELEMENT CustomerParty (Name,CustomerNumber?,Address,Address2?,City,StateProvince,PostalCode,Region?,TaxIDNumber?,PhoneNumber?,FaxNumber?,EMailAddress?,Contact?)>

<!ELEMENT Name (#PCDATA)>
<!ELEMENT CustomerNumber (#PCDATA)>
<!ELEMENT Address (#PCDATA)>
<!ELEMENT Address2 (#PCDATA)>
<!ELEMENT City (#PCDATA)>
<!ELEMENT State (#PCDATA)>
<!ELEMENT StateProvince (#PCDATA)>
<!ELEMENT PostalCode (#PCDATA)>
<!ELEMENT Region (#PCDATA)>
<!ELEMENT TaxIDNumber (#PCDATA)>
<!ELEMENT PhoneNumber (#PCDATA)>
<!ELEMENT FaxNumber (#PCDATA)>
<!ELEMENT EMailAddress (#PCDATA)>

<!ELEMENT BillToParty (Name,Address,Address2?,City,StateProvince,PostalCode,Region?,TaxIDNumber?,PhoneNumber?, FaxNumber?, EMailAddress?,Contact?)>
<!ELEMENT CustomerContactParty (Name,Address,Address2?,City,StateProvince,PostalCode,Region?,TaxIDNumber?,PhoneNumber?, FaxNumber?, EMailAddress?,Contact?)>
<!ELEMENT ShipToParty (Name?,Address?,Address2?,City?,StateProvince?,PostalCode?,Region?,PhoneNumber?,FaxNumber?,EMailAddress?,Contact?)>
<!ELEMENT VendorSupplierParty (Name,Address,Address2?,City,StateProvince,PostalCode,Region?,TaxIDNumber?,PhoneNumber?,FaxNumber?,EMailAddress?,Contact?)>
<!ELEMENT Contact (#PCDATA)>

<!ELEMENT RemitToParty (Name?,Address?,Address2?,City?,StateProvince?,PostalCode?,Region?,PhoneNumber?,FaxNumber?,EMailAddress?,Contact?)>
<!ELEMENT ShipFromParty (Name?,Address?,Address2?,City?,StateProvince?,PostalCode?,Region?,PhoneNumber?,FaxNumber?,EMailAddress?,Contact?)>