Hej Flynow
Du får genrelt nok nemmere svar om OIO* på deres eget fora'er...
fx:
Men til dit spr..
Ja, dokumentmæssigt er det fint muligt at anvende CVR.
Du roder rundt mellem OIOXML (det gamle 0,7 format) og OIOUBL (det nye 2,01 format)
Du skriver OIOUBL, men com:xxx er OIOXML, og typecode samt Seller/Buyerparty findes ikke i OIOUBL.
OIOUBL:
http://www.oioubl.info/Classes/da/Invoice.html<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
...
<cac:AccountingSupplierParty xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2">
    <cac:Party>
      <cbc:EndpointID schemeID="DK:CVR" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">DK30808460</cbc:EndpointID>
...
<cac:AccountingCustomerParty xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2">
    <cac:Party>
      <cbc:EndpointID schemeID="DK:CVR" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">DK31066557</cbc:EndpointID>
      <cac:PartyIdentification>
        <cbc:ID schemeID="ZZZ" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">DK31066557</cbc:ID>
      </cac:PartyIdentification>
-------------
OIOXML: (autokonverteret fra OIOUBL, derfor er CVR underligt :-)
<Invoice xsi:schemaLocation="
http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd" xmlns="
http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:com="
http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="
http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/"><com:TypeCode>PIE</com:TypeCode>
<com:BuyerParty> <com:ID schemeID="ZZZ">DK31066557</com:ID>  
<com:SellerParty> <com:ID schemeID="CVR">30808460</com:ID>