XML Schema Collection from multiple XSD files

  • Hello,

    I need to generate XML files for a new customer, using standard Electronic Commerce Format they have (https://vefa.difi.no/ehf/)

    I have three XSD files - one has compexTypes as below and the other two - their "components".

    I know how to use CREATE XML SCHEMA COLLECTION for my simple XSD files, but never had an experience with multiple ones.

    Can one point me for some examples, or perhaps kindly advise what I can do, please?

    Many thanks!

    <?xml version="1.0" encoding="iso-8859-1"?>

    <xs:schema xmlns:a="urn:oasis:names:specification:ubl:schema:xsd:Catalogue-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:sdt="urn:oasis:names:specification:ubl:schema:xsd:SpecializedDatatypes-2" xmlns:udt="urn:un:unece:uncefact:data:specification:UnqualifiedDataTypesSchemaModule:2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-2" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:Catalogue-2" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <xs:import namespace="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" />

    <xs:import namespace="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" />

    <xs:element name="Catalogue">

    <xs:complexType>

    <xs:sequence>

    <xs:element ref="cbc:UBLVersionID" />

    <xs:element ref="cbc:CustomizationID" />

    <xs:element ref="cbc:ProfileID" />

    <xs:element ref="cbc:ID" />

    <xs:element ref="cbc:ActionCode" />

    <xs:element ref="cbc:Name" />

    <xs:element ref="cbc:IssueDate" />

    <xs:element ref="cbc:VersionID" />

    <xs:element ref="cac:ValidityPeriod" />

    <xs:element ref="cac:ReferencedContract" />

    <xs:element ref="cac:ProviderParty" />

    <xs:element ref="cac:ReceiverParty" />

    <xs:element ref="cac:SellerSupplierParty" />

    <xs:element ref="cac:ContractorCustomerParty" />

    <xs:element maxOccurs="unbounded" ref="cac:CatalogueLine" />

    </xs:sequence>

    </xs:complexType>

    </xs:element>

    </xs:schema>

Viewing 0 posts

You must be logged in to reply to this topic. Login to reply