Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Global Namespaces

Info

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"

Code Block
languagexml
<?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

Info

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

Panel
panelIconId31-20e3
panelIcon:one:
panelIconText1️⃣
bgColor#FFFAE6

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

xmlns="http://www.bmecat.org/bmecat/2005"

Code Block
languagexml
<?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>
Panel
panelIconId32-20e3
panelIcon:two:
panelIconText2️⃣
bgColor#FFFAE6

Variant 2: Alternative implementation of the xmlns="http://www.bmecat.org/bmecat/2005" namespace, if it cannot be supplied as an attribute at element level:

  • Specify the namespace in the root element: xmlns:bmecat="http://www.bmecat.org/bmecat/2005"

  • Reference to it as a prefix in the affected elements: <bmecat:SUPPLIER_PID type="supplierProductKey">

Code Block
languagexml
<?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 type="supplierProductKey">A375PID>A375-129</bmecat:SUPPLIER_PID>
				<bmecat:INTERNATIONAL_PID type="gtin">09783404175109<PID>09783404175109</bmecat:INTERNATIONAL_PID>
				<bmecat:BUYER_PID type="DgProductId">6406567<PID>6406567</bmecat:BUYER_PID>
			</PRODUCT_ID>
...	
</ORDERRESPONSE>