User Tools

Site Tools


en:lensorder:version010600:structure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:lensorder:version010600:structure [2013/04/30 19:22] sebastianraringen:lensorder:version010600:structure [2013/06/05 11:24] (current) sebastianraring
Line 1: Line 1:
 +====== XML-Structure ======
 +
 +
 +===== Root-Element: b2boptic =====
 +
 +{{:en:lensorder:version010600:xsd_b2boptic.png?nolink|B2BOptic}}
 +
 +In the root-element the location of the XSD at schema.b2boptic.com should be set, so the receiver could identify the version of XML. In next version it will be mandatory.
 +<code xml>
 +<b2bOptic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.b2boptic.com/b2boptic_v1.6.0.xsd">
 +</code>
 +
 +^ [[en:lensorder:version010600:complextypes:header|header]] ^^
 +^ type | [[en:lensorder:version010600:complextypes:header|Header]] |
 +^ occurs | 1 |
 +^ description | head section with information about all orders in this xml |
 +
 +^ items ^^
 +^ type | sequence of item |
 +^ occurs | 1 |
 +^ description | main tag that include a list of order items |
 +
 +^ [[en:lensorder:version010600:complextypes:item|item]] (element of items) ^^
 +^ type | [[en:lensorder:version010600:complextypes:item|Item]] |
 +^ occurs | 1..n |
 +^ description | one order |
 +
 +^ experimental ^^
 +^ type | anyType |
 +^ occurs | 0..n |
 +^ description | section for internal tests at development |
 +
 +<code xml>
 +  <xs:element name="b2bOptic">
 +    <xs:complexType>
 +      <xs:sequence>
 + <xs:element name="header" type="Header"/>
 + <xs:element name="items">
 +   <xs:complexType>
 +     <xs:sequence>
 +              <xs:element name="item" type="Item" maxOccurs="unbounded"/>
 +     </xs:sequence>
 +   </xs:complexType>
 +        </xs:element>
 +        <xs:element name="experimental" type="xs:anyType" minOccurs="0" maxOccurs="unbounded"/>
 +      </xs:sequence>
 +    </xs:complexType>
 +  </xs:element>
 +</code>