Namespaces
Folgende Namespaces und Version müssen im Start-Tag des Root Elements jedes Dokuments enthalten sein:
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.opentrans.org/XMLSchema/2.1"
version="2.1"
<?xml version="1.0" encoding="utf-8"?>
<ORDERRESPONSE xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentrans.org/XMLSchema/2.1" version="2.1">
<ORDERRESPONSE_HEADER>
...
</ORDERRESPONSE_HEADER>
<ORDERRESPONSE_ITEM_LIST>
...
</ORDERRESPONSE_ITEM_LIST>
</ORDERRESPONSE>
Elementspezifische Namespaces
XML Elemente welche im Data type den Vermerk BMEcat NS haben benötigen das xmlns Attribut:
Variante 1: Namespace im Start-Tag des Elements:
xmlns="http://www.bmecat.org/bmecat/2005"
<?xml version="1.0" encoding="utf-8"?>
<ORDERRESPONSE xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentrans.org/XMLSchema/2.1" version="2.1">
...
<PRODUCT_ID>
<SUPPLIER_PID xmlns="http://www.bmecat.org/bmecat/2005">A375-129</SUPPLIER_PID>
<INTERNATIONAL_PID xmlns="http://www.bmecat.org/bmecat/2005">09783404175109</INTERNATIONAL_PID>
<BUYER_PID xmlns="http://www.bmecat.org/bmecat/2005">6406567</BUYER_PID>
</PRODUCT_ID>
...
</ORDERRESPONSE>
<?xml version="1.0" encoding="utf-8"?>
<ORDERRESPONSE xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentrans.org/XMLSchema/2.1" xmlns:bmecat="http://www.bmecat.org/bmecat/2005" version="2.1">
...
<PRODUCT_ID>
<bmecat:SUPPLIER_PID>A375-129</bmecat:SUPPLIER_PID>
<bmecat:INTERNATIONAL_PID>09783404175109</bmecat:INTERNATIONAL_PID>
<bmecat:BUYER_PID>6406567</bmecat:BUYER_PID>
</PRODUCT_ID>
...
</ORDERRESPONSE>