title: xml namespace issues when validating a XML schema
body: <p>my xml file starts like so:</p>
  
  <p><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;Invoice Version="5.0"&gt;
  &lt;/Invoice&gt;</code></p>
  
  <p>For simplicty:</p>
  
  <p>the XSD starts off like this:</p>
  
  <pre><code>&lt;xsd:schema xmlns="urn:cidx:names:specification:ces:schema:all:5:0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:cidx:names:specification:ces:schema:all:5:0"&gt;
  </code></pre>
  
  <p>I want to validate the xml file against the .xsd </p>
  
  <p>I looked into this and it seems that I need to declare the .xsd in the xml file.</p>
  
  <p>So I tried that:</p>
  
  <pre><code>&lt;Invoice Version="5.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:SchemaLocation="http://www.w3schools.com file:///c:/Users/jpublic/Desktop/CIDX.xsd"&gt;
  </code></pre>
  
  <p>That doesn't seem to work... I'm sure it's something to do with the declaration being wrong wrong wrong but i'm very new to xml.</p>
  
  <p>I'm trying to validate via notepad++ plugin XML tools Plugin 2.3.2
  When I click Validate now it asks me where the file exists and once i pick it via the file open dialog box it give me this error:</p>
  
  <p>Validation of current file using XML schema:</p>
  
  <p>ERROR: Element 'Invoice': No matching global declaration available for the validation root.</p>
  
  <p>Thanks!</p>
  
  <p>Update: </p>
  
  <p>Okay, so that allows it to find the file now it complains that every element in not expected i.e. TaxOrDutyTotals': This element is not expected. Expected is:</p>
  
  <pre><code>( {urn:cidx:names:specification:ces:schema:all:5:0}TaxOrDuty )
  </code></pre>
  
  <p>. I presume that means that it's not in the .xsd but i see it here:</p>
  
  <pre><code>&lt;xsd:element name="TaxOrDutyTotals" type="TaxOrDutyTotalsType"/&gt;
  </code></pre>
  
  <p>update 2: </p>
  
  <p>.xsd</p>
  
  <pre><code>    ?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) --&gt;
  &lt;xsd:schema xmlns="urn:cidx:names:specification:ces:schema:all:5:0" targetNamespace="urn:cidx:names:specification:ces:schema:all:5:0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xsd:simpleType name="cidxBoolean"&gt;
      &lt;xsd:restriction base="cidxToken"&gt;
        &lt;xsd:enumeration value="0"/&gt;
        &lt;xsd:enumeration value="1"/&gt;
      &lt;/xsd:restriction&gt;
    &lt;/xsd:simpleType&gt;
    &lt;xsd:simpleType name="cidxDateTime"&gt;
      &lt;xsd:restriction base="xsd:dateTime"/&gt;
    &lt;/xsd:simpleType&gt;
    &lt;xsd:simpleType name="cidxString"&gt;
      &lt;xsd:restriction base="xsd:string"&gt;
        &lt;xsd:minLength value="1"/&gt;
      &lt;/xsd:restriction&gt;
    &lt;/xsd:simpleType&gt;
    &lt;xsd:simpleType name="cidxToken"&gt;
      &lt;xsd:restriction base="xsd:token"&gt;
        &lt;xsd:minLength value="1"/&gt;
        &lt;xsd:whiteSpace value="collapse"/&gt;
      &lt;/xsd:restriction&gt;
    &lt;/xsd:simpleType&gt;
    &lt;xsd:simpleType name="cidxListTaxOrDutyQualifier"&gt;
      &lt;xsd:restriction base="xsd:NMTOKEN"&gt;
        &lt;xsd:enumeration value="VAT"/&gt;
        &lt;xsd:enumeration value="Duty"/&gt;
        &lt;xsd:enumeration value="Fee"/&gt;
        &lt;xsd:enumeration value="Tax"/&gt;
      &lt;/xsd:restriction&gt;
    &lt;/xsd:simpleType&gt;
  &lt;xsd:simpleType name="cidxListTaxOrDutyQualifier"&gt;
      &lt;xsd:restriction base="xsd:NMTOKEN"&gt;
        &lt;xsd:enumeration value="VAT"/&gt;
        &lt;xsd:enumeration value="Duty"/&gt;
        &lt;xsd:enumeration value="Fee"/&gt;
        &lt;xsd:enumeration value="Tax"/&gt;
      &lt;/xsd:restriction&gt;
    &lt;/xsd:simpleType&gt;
  &lt;xsd:element name="Allowances" type="AllowancesType"/&gt;
    &lt;xsd:complexType name="AllowancesType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element ref="AllowanceChargeIndicator"/&gt;
        &lt;xsd:element ref="AllowanceChargeType"/&gt;
        &lt;xsd:element ref="AllowanceChargeAmount"/&gt;
        &lt;xsd:element minOccurs="0" maxOccurs="unbounded" ref="TaxOrDuty"/&gt;
        &lt;xsd:element ref="AllowanceChargeCode"/&gt;
        &lt;xsd:element ref="AllowanceChargeDescription"/&gt;
        &lt;xsd:element minOccurs="0" ref="AllowanceChargeRateInformation"/&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
  &lt;xsd:element name="InvoiceTotals" type="InvoiceTotalsType"/&gt;
    &lt;xsd:complexType name="InvoiceTotalsType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element minOccurs="0" ref="TotalLineItems"/&gt;
        &lt;xsd:element minOccurs="0" ref="LineItemTotalAmount"/&gt;
        &lt;xsd:element minOccurs="0" ref="ShippingTotalAmount"/&gt;
        &lt;xsd:element minOccurs="0" maxOccurs="unbounded" ref="Allowances"/&gt;
        &lt;xsd:element ref="InvoiceTotal"/&gt;
        &lt;xsd:element minOccurs="0" maxOccurs="unbounded" ref="TaxOrDutyTotals"/&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
   &lt;xsd:element name="LineItemTaxableTotal" type="LineItemTaxableTotalType"/&gt;
    &lt;xsd:complexType name="LineItemTaxableTotalType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element ref="MonetaryAmount"/&gt;
        &lt;xsd:element minOccurs="0" maxOccurs="unbounded" ref="TaxOrDuty"/&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
  &lt;xsd:element name="Shipping" type="ShippingType"/&gt;
    &lt;xsd:complexType name="ShippingType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element ref="MonetaryAmount"/&gt;
        &lt;xsd:element minOccurs="0" maxOccurs="unbounded" ref="TaxOrDuty"/&gt;
      &lt;/xsd:sequence&gt;
    &lt;/xsd:complexType&gt;
   &lt;xsd:element name="TaxLocation" type="TaxLocationType"/&gt;
    &lt;xsd:element name="TaxOrDuty" type="TaxOrDutyType"/&gt;
    &lt;xsd:complexType name="TaxOrDutyType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element ref="TaxTypeCode"/&gt;
        &lt;xsd:element ref="TaxLocation"/&gt;
        &lt;xsd:choice&gt;
          &lt;xsd:element ref="Exempt"/&gt;
          &lt;xsd:element maxOccurs="unbounded" ref="NonExempt"/&gt;
        &lt;/xsd:choice&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:attribute name="TaxOrDutyQualifier" type="cidxListTaxOrDutyQualifier" use="required"/&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:element name="TaxOrDutyTotals" type="TaxOrDutyTotalsType"/&gt;
    &lt;xsd:complexType name="TaxOrDutyTotalsType"&gt;
      &lt;xsd:sequence&gt;
        &lt;xsd:element ref="TaxTypeCode"/&gt;
        &lt;xsd:element ref="TaxLocation"/&gt;
        &lt;xsd:element ref="ExemptTotal"/&gt;
        &lt;xsd:element maxOccurs="unbounded" ref="NonExemptTotals"/&gt;
      &lt;/xsd:sequence&gt;
      &lt;xsd:attribute name="TaxOrDutyQualifier" type="cidxListTaxOrDutyQualifier" use="required"/&gt;
    &lt;/xsd:complexType&gt;
    &lt;xsd:element name="TaxRate" type="TaxRateType"/&gt;
    &lt;xsd:element name="TaxTypeCode" type="TaxTypeCodeType"/&gt;
    &lt;xsd:complexType name="TaxTypeCodeType"&gt;
      &lt;xsd:simpleContent&gt;
        &lt;xsd:extension base="cidxToken"&gt;
          &lt;xsd:attribute fixed="ANSI-ASC-X12-963" name="Domain" type="cidxToken"/&gt;
        &lt;/xsd:extension&gt;
      &lt;/xsd:simpleContent&gt;
    &lt;/xsd:complexType&gt;
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
    &lt;Invoice Version="5.0" xsi:SchemaLocation="file:///c:/Users/someperson/Desktop/CIDX.xsd urn:cidx:names:specification:ces:schema:all:5:0" xmlns = "urn:cidx:names:specification:ces:schema:all:5:0"&gt;
       &lt;Header&gt;
          &lt;ThisDocumentIdentifier&gt;
             &lt;DocumentIdentifier&gt;RE12345&lt;/DocumentIdentifier&gt;
          &lt;/ThisDocumentIdentifier&gt;
          &lt;ThisDocumentDateTime&gt;
             &lt;DateTime DateTimeQualifier="On"&gt;2013-10-15T10:00:00Z&lt;/DateTime&gt;
          &lt;/ThisDocumentDateTime&gt;
          &lt;From&gt;
             &lt;PartnerInformation&gt;
                &lt;PartnerName&gt;Partner Gumby&lt;/PartnerName&gt;
                &lt;PartnerIdentifier Agency="D-U-N-S"&gt;123456789&lt;/PartnerIdentifier&gt;
             &lt;/PartnerInformation&gt;
          &lt;/From&gt;
          &lt;To&gt;
             &lt;PartnerInformation&gt;
                &lt;PartnerName&gt;awesome&lt;/PartnerName&gt;
                &lt;PartnerIdentifier Agency="D-U-N-S"&gt;123456787&lt;/PartnerIdentifier&gt;
             &lt;/PartnerInformation&gt;
          &lt;/To&gt;
       &lt;/Header&gt;
       &lt;InvoiceBody&gt;
          &lt;InvoiceProperties&gt;
             &lt;InvoiceNumber&gt;
                &lt;DocumentReference&gt;
                   &lt;DocumentIdentifier&gt;RE12345&lt;/DocumentIdentifier&gt;
                &lt;/DocumentReference&gt;
             &lt;/InvoiceNumber&gt;
             &lt;InvoiceType InvoiceQualifier="Original"&gt;Debit&lt;/InvoiceType&gt;
             &lt;InvoiceDate&gt;
                &lt;DateTime DateTimeQualifier="On"&gt;2013-04-17T00:00:00Z&lt;/DateTime&gt;
             &lt;/InvoiceDate&gt;
             &lt;GrossInvoiceAmount&gt;
                &lt;MonetaryAmount&gt;
                   &lt;MonetaryValue&gt;1186.80&lt;/MonetaryValue&gt;
                   &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                &lt;/MonetaryAmount&gt;
             &lt;/GrossInvoiceAmount&gt;
             &lt;ReferenceInformation ReferenceType="PurchaseOrderNumber"&gt;
                &lt;DocumentReference&gt;
                   &lt;DocumentIdentifier&gt;100000001&lt;/DocumentIdentifier&gt;
                &lt;/DocumentReference&gt;
             &lt;/ReferenceInformation&gt;
             &lt;ReferenceInformation ReferenceType="BookingNumber"&gt;
                &lt;DocumentReference&gt;
                   &lt;DocumentIdentifier&gt;E07&lt;/DocumentIdentifier&gt;
                &lt;/DocumentReference&gt;
             &lt;/ReferenceInformation&gt;
             &lt;ReferenceInformation ReferenceType="DeliveryNoteNumber"&gt;
                &lt;DocumentReference&gt;
                   &lt;DocumentIdentifier&gt;LS1234&lt;/DocumentIdentifier&gt;
                   &lt;DateTime DateTimeQualifier="On"&gt;2013-04-02T00:00:00Z&lt;/DateTime&gt;
                &lt;/DocumentReference&gt;
             &lt;/ReferenceInformation&gt;
             &lt;PrimaryCurrency&gt;
                &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
             &lt;/PrimaryCurrency&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*SupplierTaxNumber:01/234/5678/9&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*SupplierCommRegNo:132435&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*SupplierCommCourt:John Q. Public&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*QSSKZ:QS&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*TaxCode:AN&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*ExportSign:1&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*HeaderText:woot! I&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*BankCountryKey:US&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*IBAN:000&lt;/SpecialInstructions&gt;
             &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*SWIFT:bleh&lt;/SpecialInstructions&gt;
             &lt;InvoiceTotals&gt;
                &lt;TotalLineItems&gt;2&lt;/TotalLineItems&gt;
                &lt;LineItemTotalAmount&gt;
                   &lt;MonetaryAmount&gt;
                      &lt;MonetaryValue&gt;1186.80&lt;/MonetaryValue&gt;
                      &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                   &lt;/MonetaryAmount&gt;
                &lt;/LineItemTotalAmount&gt;
                &lt;Allowances&gt;
                   &lt;AllowanceChargeIndicator&gt;A&lt;/AllowanceChargeIndicator&gt;
                   &lt;AllowanceChargeType&gt;A&lt;/AllowanceChargeType&gt;
                   &lt;AllowanceChargeAmount&gt;
                      &lt;PricingLumpSum&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;12.00&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/PricingLumpSum&gt;
                   &lt;/AllowanceChargeAmount&gt;
                   &lt;AllowanceChargeCode Domain="ANSI-ASC-X12-1300"&gt;F050&lt;/AllowanceChargeCode&gt;
                   &lt;AllowanceChargeDescription&gt;some work&lt;/AllowanceChargeDescription&gt;
                &lt;/Allowances&gt;
                &lt;Allowances&gt;
                   &lt;AllowanceChargeIndicator&gt;C&lt;/AllowanceChargeIndicator&gt;
                   &lt;AllowanceChargeType&gt;C&lt;/AllowanceChargeType&gt;
                   &lt;AllowanceChargeAmount&gt;
                      &lt;PricingLumpSum&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;12.00&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/PricingLumpSum&gt;
                   &lt;/AllowanceChargeAmount&gt;
                   &lt;AllowanceChargeCode Domain="ANSI-ASC-X12-1300"&gt;F050&lt;/AllowanceChargeCode&gt;
                   &lt;AllowanceChargeDescription&gt;Some Work&lt;/AllowanceChargeDescription&gt;
                &lt;/Allowances&gt;
                &lt;Allowances&gt;
                   &lt;AllowanceChargeIndicator&gt;C&lt;/AllowanceChargeIndicator&gt;
                   &lt;AllowanceChargeType&gt;C&lt;/AllowanceChargeType&gt;
                   &lt;AllowanceChargeAmount&gt;
                      &lt;PricingLumpSum&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;0.58&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/PricingLumpSum&gt;
                   &lt;/AllowanceChargeAmount&gt;
                   &lt;AllowanceChargeCode Domain="ANSI-ASC-X12-1300"&gt;D210&lt;/AllowanceChargeCode&gt;
                   &lt;AllowanceChargeDescription&gt;Fun&lt;/AllowanceChargeDescription&gt;
                &lt;/Allowances&gt;
                &lt;InvoiceTotal&gt;
                   &lt;MonetaryAmount&gt;
                      &lt;MonetaryValue&gt;1326.85&lt;/MonetaryValue&gt;
                      &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                   &lt;/MonetaryAmount&gt;
                &lt;/InvoiceTotal&gt;
                &lt;TaxOrDutyTotals TaxOrDutyQualifier="Tax"&gt;
                   &lt;TaxTypeCode Domain="ANSI-ASC-X12-963"&gt;TX&lt;/TaxTypeCode&gt;
                   &lt;TaxLocation&gt;DE&lt;/TaxLocation&gt;
                   &lt;ExemptTotal&gt;
                      &lt;MonetaryAmount&gt;
                         &lt;MonetaryValue&gt;0&lt;/MonetaryValue&gt;
                         &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                      &lt;/MonetaryAmount&gt;
                   &lt;/ExemptTotal&gt;
                   &lt;NonExemptTotals&gt;
                      &lt;TaxRate&gt;7.00&lt;/TaxRate&gt;
                      &lt;TaxableAmountTotal&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;712.08&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/TaxableAmountTotal&gt;
                      &lt;TaxAmountTotal&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;49.85&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/TaxAmountTotal&gt;
                   &lt;/NonExemptTotals&gt;
                   &lt;NonExemptTotals&gt;
                      &lt;TaxRate&gt;19.00&lt;/TaxRate&gt;
                      &lt;TaxableAmountTotal&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;474.72&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/TaxableAmountTotal&gt;
                      &lt;TaxAmountTotal&gt;
                         &lt;MonetaryAmount&gt;
                            &lt;MonetaryValue&gt;90.20&lt;/MonetaryValue&gt;
                            &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                         &lt;/MonetaryAmount&gt;
                      &lt;/TaxAmountTotal&gt;
                   &lt;/NonExemptTotals&gt;
                &lt;/TaxOrDutyTotals&gt;
             &lt;/InvoiceTotals&gt;
             &lt;PaymentTerms&gt;
                &lt;PaymentTermsOfSale&gt;
                   &lt;TermsOfSaleDescription&gt;Bis 01.05.2013 &lt;/TermsOfSaleDescription&gt;
                   &lt;NetDaysDue&gt;30&lt;/NetDaysDue&gt;
                   &lt;PaymentDueDate&gt;
                        &lt;DateTime DateTimeQualifier="On"&gt;2013-05-01T00:00:00Z&lt;/DateTime&gt;
                   &lt;/PaymentDueDate&gt;
                &lt;/PaymentTermsOfSale&gt;
                &lt;PaymentTermsBasisDate&gt;
                   &lt;DateTime DateTimeQualifier="On"&gt;2013-04-01T00:00:00Z&lt;/DateTime&gt;
                &lt;/PaymentTermsBasisDate&gt;
                &lt;Discounts&gt;
                   &lt;PercentDiscount&gt;3.00&lt;/PercentDiscount&gt;
                   &lt;DaysDue&gt;14&lt;/DaysDue&gt;
                &lt;/Discounts&gt;
             &lt;/PaymentTerms&gt;
             &lt;DeliveryTerms&gt;
                &lt;DeliveryTermsCode Domain="Incoterms-2000"&gt;abc&lt;/DeliveryTermsCode&gt;
                &lt;DeliveryTermsLocation&gt;front&lt;/DeliveryTermsLocation&gt;
             &lt;/DeliveryTerms&gt;
          &lt;/InvoiceProperties&gt;
          &lt;InvoicePartners&gt;
             &lt;Buyer&gt;
                &lt;PartnerInformation&gt;
                   &lt;PartnerName&gt;banana&lt;/PartnerName&gt;
                   &lt;PartnerName&gt;Accounting&lt;/PartnerName&gt;
                   &lt;PartnerIdentifier Agency="AssignedByBuyer"&gt;0050&lt;/PartnerIdentifier&gt;
                   &lt;AddressInformation&gt;
                      &lt;AddressLine&gt;asdfasf. 38&lt;/AddressLine&gt;
                      &lt;CityName&gt;asdfs&lt;/CityName&gt;
                      &lt;PostalCode&gt;45261&lt;/PostalCode&gt;
                      &lt;PostalCountry&gt;US&lt;/PostalCountry&gt;
                   &lt;/AddressInformation&gt;
                   &lt;TaxInformation&gt;
                      &lt;TaxIdentifierNumber&gt;DE149145247&lt;/TaxIdentifierNumber&gt;
                   &lt;/TaxInformation&gt;
                &lt;/PartnerInformation&gt;
             &lt;/Buyer&gt;
             &lt;Seller&gt;
                &lt;PartnerInformation&gt;
                   &lt;PartnerName&gt;Name Lieferant&lt;/PartnerName&gt;
                   &lt;PartnerIdentifier Agency="AssignedByBuyer"&gt;23456789&lt;/PartnerIdentifier&gt;
                   &lt;AddressInformation&gt;
                      &lt;AddressLine&gt;Strasse Lieferant&lt;/AddressLine&gt;
                      &lt;CityName&gt;Ort Lieferant&lt;/CityName&gt;
                      &lt;PostalCode&gt;PLZ 12345&lt;/PostalCode&gt;
                      &lt;PostalCountry&gt;DE&lt;/PostalCountry&gt;
                   &lt;/AddressInformation&gt;
                   &lt;TaxInformation&gt;
                      &lt;TaxIdentifierNumber&gt;DE123456789&lt;/TaxIdentifierNumber&gt;
                   &lt;/TaxInformation&gt;
                   &lt;AccountInformation&gt;
                      &lt;AccountHolderName&gt;Kontoinhaber&lt;/AccountHolderName&gt;
                      &lt;FinancialInstitutionIdentification&gt;
                          &lt;FinancialInstitutionName&gt;Name Some Bank&lt;/FinancialInstitutionName&gt;
                          &lt;FinancialInstitutionDFINumber&gt;11111111111&lt;/FinancialInstitutionDFINumber&gt;
                          &lt;AccountNumber&gt;11111111111111111&lt;/AccountNumber&gt;
                      &lt;/FinancialInstitutionIdentification&gt;
                   &lt;/AccountInformation&gt;
                &lt;/PartnerInformation&gt;
             &lt;/Seller&gt;
             &lt;OtherPartner PartnerRole="Receiver"&gt;
                &lt;PartnerInformation&gt;
                   &lt;PartnerName&gt;Name banana&lt;/PartnerName&gt;
                   &lt;PartnerIdentifier Agency="AssignedBySeller"&gt;000&lt;/PartnerIdentifier&gt;
                   &lt;AddressInformation&gt;
                      &lt;AddressLine&gt;WE Strasse&lt;/AddressLine&gt;
                      &lt;CityName&gt;WE Ort&lt;/CityName&gt;
                      &lt;PostalCode&gt;68790&lt;/PostalCode&gt;
                      &lt;PostalCountry&gt;DE&lt;/PostalCountry&gt;
                   &lt;/AddressInformation&gt;
                &lt;/PartnerInformation&gt;
             &lt;/OtherPartner&gt;
             &lt;OtherPartner PartnerRole="ShipFrom"&gt;
                &lt;PartnerInformation&gt;
                   &lt;PartnerName&gt;ShipFrom&lt;/PartnerName&gt;
                   &lt;PartnerIdentifier Agency="AssignedBySeller"&gt;000&lt;/PartnerIdentifier&gt;
                   &lt;AddressInformation&gt;
                      &lt;CityName&gt;City&lt;/CityName&gt;
                      &lt;PostalCountry&gt;DE&lt;/PostalCountry&gt;
                   &lt;/AddressInformation&gt;
                &lt;/PartnerInformation&gt;
             &lt;/OtherPartner&gt;
             &lt;OtherPartner PartnerRole="ShipTo"&gt;
                &lt;PartnerInformation&gt;
                   &lt;PartnerName&gt;ShipTo&lt;/PartnerName&gt;
                   &lt;PartnerIdentifier Agency="AssignedBySeller"&gt;000&lt;/PartnerIdentifier&gt;
                   &lt;AddressInformation&gt;
                      &lt;CityName&gt;City&lt;/CityName&gt;
                      &lt;PostalCountry&gt;GB&lt;/PostalCountry&gt;
                   &lt;/AddressInformation&gt;
                &lt;/PartnerInformation&gt;
             &lt;/OtherPartner&gt;
          &lt;/InvoicePartners&gt;
          &lt;InvoiceDetails&gt;
             &lt;InvoiceLineItem&gt;
                &lt;LineNumber&gt;1&lt;/LineNumber&gt;
                &lt;ProductIdentification&gt;
                   &lt;ProductIdentifier Agency="AssignedBySeller"&gt;12345678&lt;/ProductIdentifier&gt;
                   &lt;ProductDescription&gt;bonanza 1&lt;/ProductDescription&gt;
                &lt;/ProductIdentification&gt;
                &lt;ProductQuantity&gt;
                   &lt;Measurement&gt;
                      &lt;MeasurementValue&gt;2.000&lt;/MeasurementValue&gt;
                      &lt;UnitOfMeasureCode Domain="UN-Rec-20"&gt;PCE&lt;/UnitOfMeasureCode&gt;
                   &lt;/Measurement&gt;
                &lt;/ProductQuantity&gt;
                &lt;Pricing PriceType="NetPrice"&gt;
                   &lt;PricingPerUnit&gt;
                      &lt;MonetaryAmount&gt;
                         &lt;MonetaryValue&gt;237.36&lt;/MonetaryValue&gt;
                         &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                      &lt;/MonetaryAmount&gt;
                      &lt;PriceBasis&gt;
                         &lt;Measurement&gt;
                            &lt;MeasurementValue&gt;1&lt;/MeasurementValue&gt;
                            &lt;UnitOfMeasureCode Domain="UN-Rec-20"&gt;PCE&lt;/UnitOfMeasureCode&gt;
                         &lt;/Measurement&gt;
                      &lt;/PriceBasis&gt;
                   &lt;/PricingPerUnit&gt;
                &lt;/Pricing&gt;
                &lt;PurchaseOrderInformation&gt;
                   &lt;DocumentReference&gt;
                      &lt;DocumentIdentifier&gt;100000001&lt;/DocumentIdentifier&gt;
                      &lt;ReferenceItem&gt;10&lt;/ReferenceItem&gt;
                   &lt;/DocumentReference&gt;
                &lt;/PurchaseOrderInformation&gt;
                &lt;ReferenceInformation ReferenceType="DeliveryNoteNumber"&gt;
                   &lt;DocumentReference&gt;
                      &lt;DocumentIdentifier&gt;LS1234&lt;/DocumentIdentifier&gt;
                      &lt;DateTime DateTimeQualifier="On"&gt;2013-04-02T00:00:00Z&lt;/DateTime&gt;
                   &lt;/DocumentReference&gt;
                &lt;/ReferenceInformation&gt;
                &lt;ReferenceInformation ReferenceType="SalesOrderReference"&gt;
                   &lt;DocumentReference&gt;
                      &lt;DocumentIdentifier&gt;2013000002&lt;/DocumentIdentifier&gt;
                      &lt;ReferenceItem&gt;30&lt;/ReferenceItem&gt;
                   &lt;/DocumentReference&gt;
                &lt;/ReferenceInformation&gt;
                &lt;OtherPartner PartnerRole="ShipFrom"&gt;
                   &lt;PartnerInformation&gt;
                      &lt;PartnerName&gt;ShipFrom&lt;/PartnerName&gt;
                      &lt;PartnerIdentifier Agency="AssignedBySeller"&gt;000&lt;/PartnerIdentifier&gt;
                      &lt;AddressInformation&gt;
                         &lt;CityName&gt;City&lt;/CityName&gt;
                         &lt;PostalCountry&gt;US&lt;/PostalCountry&gt;
                      &lt;/AddressInformation&gt;
                   &lt;/PartnerInformation&gt;
                &lt;/OtherPartner&gt;
                &lt;OtherPartner PartnerRole="ShipTo"&gt;
                   &lt;PartnerInformation&gt;
                      &lt;PartnerName&gt;ShipTo&lt;/PartnerName&gt;
                      &lt;PartnerIdentifier Agency="AssignedByBuyer"&gt;1630&lt;/PartnerIdentifier&gt;
                      &lt;AddressInformation&gt;
                         &lt;CityName&gt;City&lt;/CityName&gt;
                         &lt;PostalCountry&gt;US&lt;/PostalCountry&gt;
                      &lt;/AddressInformation&gt;
                   &lt;/PartnerInformation&gt;
                &lt;/OtherPartner&gt;
                &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*TXJCD:NY&lt;/SpecialInstructions&gt;
                &lt;SpecialInstructions InstructionType="CustomerRequiredInstructions"&gt;*TaxCode:AN&lt;/SpecialInstructions&gt;
                &lt;LineItemTaxableTotal&gt;
                   &lt;MonetaryAmount&gt;
                      &lt;MonetaryValue&gt;474.72&lt;/MonetaryValue&gt;
                      &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                   &lt;/MonetaryAmount&gt;
                   &lt;TaxOrDuty TaxOrDutyQualifier="Tax"&gt;
                      &lt;TaxTypeCode Domain="ANSI-ASC-X12-963"&gt;TX&lt;/TaxTypeCode&gt;
                      &lt;TaxLocation&gt;US&lt;/TaxLocation&gt;
                      &lt;NonExempt&gt;
                         &lt;TaxRate&gt;19.00&lt;/TaxRate&gt;
                         &lt;TaxableAmount&gt;
                            &lt;MonetaryAmount&gt;
                               &lt;MonetaryValue&gt;474.72&lt;/MonetaryValue&gt;
                               &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                            &lt;/MonetaryAmount&gt;
                         &lt;/TaxableAmount&gt;
                         &lt;TaxAmount&gt;
                            &lt;MonetaryAmount&gt;
                               &lt;MonetaryValue&gt;90.20&lt;/MonetaryValue&gt;
                               &lt;CurrencyCode Domain="ISO-4217"&gt;EUR&lt;/CurrencyCode&gt;
                            &lt;/MonetaryAmount&gt;
                         &lt;/TaxAmount&gt;
                      &lt;/NonExempt&gt;
                   &lt;/TaxOrDuty&gt;
                &lt;/LineItemTaxableTotal&gt;
             &lt;/InvoiceLineItem&gt;
          &lt;/InvoiceDetails&gt;
  &lt;/InvoiceBody&gt;
  </code></pre>
  
  <p></p>
  
  <p>okay lets try this.</p>