Namespace

The following namespaces and version must be included in the start tag of the root element of each document:

  • 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>

 

Element specific namespaces

XML elements which have the remark BMEcat NS in the data type require the xmlns attribute:

Variant 1: Namespace in the start tag of the element:

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>