XML - Schemaer
- XML- Schemaer
Faktura
<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="invoice">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="invoice_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="deal_id" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="invoice_number" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="order_number" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="transact" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="status_id" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="capture" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="head_field_ids" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="body_field_ids" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="sender_field_ids" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="head" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="invoice_head_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="invoice_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="customer_number" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="email" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="company" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="cvr" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="first_name" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="last_name" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="adress" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="zip_code" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="town" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="country" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="ean" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="body" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="invoice_body_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="invoice_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="invoice_date" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="respite" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="delivery_date" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="invoice_text" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="currency" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="amount_ex_vat" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="vat_rate" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="vat" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="amount_incl_vat" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="conditions" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="plines" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="invoice_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="pline_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="pnumber" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="ptext" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="punits" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="punit_price" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="pprice" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sender" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="invoice_sender_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="invoice_id" type="xs:integer" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="company" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="cvr" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="adress" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="zip_code" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="town" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="country" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="phone" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="fax" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="email" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="account_bank" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="account_giro" type="xs:string" minOccurs="0" maxOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Kunde
<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="lp_customer">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="deal_id" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="customer_number" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="email" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="company" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="cvr" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="first_name" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="last_name" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="adress" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="zip_code" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="town" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="country" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="ean" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Produkter
<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="lp_product">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="deal_id" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="pnumber" type="xs:integer" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="ptext" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
<xs:element name="pprice" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Fejl
<?xml version="1.0" encoding="iso-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="lp_error">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="missing" minOccurs="0" maxOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="cause" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="dates" minOccurs="0" maxOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="cause" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="inconsistent" minOccurs="0" maxOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="cause" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="wrong" minOccurs="0" maxOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="cause" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="various" minOccurs="0" maxOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="cause" type="xs:string" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>