Custom B2MML Material Master Import Document (MMID)

Instead of a JSON format, you can send an MMID in one of the following XML formats:
  • Standard B2MML
  • Custom B2MML

When you use a custom B2MML, you must first provide an XSL file that contains the mapping information. This topic provides custom B2MML samples of an MMID for each schema version. Refer to XSL File to Map a Material for a sample XSL file to map the B2MML samples. If, however, you want to use a standard B2MML format for the MMID, refer to Standard B2MML Material Master Import Document (MMID).

Note: When an XML file is processed, some of the special characters are omitted. To prevent this issue, use the escape strings as specified in the following table.
Special Character Escape String
& &
< &lt;
> &gt;
&quot;
&apos;

Custom B2MML MMID Schema Version 2

Using schema version 2, you can import materials for serialized as well as non-serialized products.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProductInformation
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:Extended="http://www.wbf.org/xml/B2MML-V0401-AllExtensions"
	xmlns="http://www.wbf.org/xml/B2MML-V0401"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ProductDefinition>
		<Description>Description Sun Aug 09 21:00:53 IST 2020</Description>
		<Version>1</Version>
		<ProductSegment>
			<Description>desc</Description>
			<EquipmentSpecification>
				<EquipmentSpecificationProperty>
					<ID>ProductionLine</ID>
					<Value>
						<ValueString>Test Line1</ValueString>
					</Value>
				</EquipmentSpecificationProperty>
				<EquipmentSpecificationProperty>
					<ID>StorageUnit</ID>
					<Value>
						<ValueString>REG_UNIT1_LINE1</ValueString>
					</Value>
				</EquipmentSpecificationProperty>
			</EquipmentSpecification>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>WEEBLES_PRODUCT_FAMILY</ValueString>
				</Value>
				<ID>PRODUCT_CATEGORY</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>inch</ValueString>
				</Value>
				<ID>unitofmeasure</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>boolean</DataType>
					<ValueString>false</ValueString>
				</Value>
				<ID>ISSERIALIZED</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>DateTime</DataType>
					<ValueString>2019-02-14T14:34:22.666Z</ValueString>
				</Value>
				<ID>ITEM_CREATION_DATE</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>895623</ValueString>
				</Value>
				<ID>ITEM_DRAWING</ID>
			</Parameter>
			<ID>1</ID>
		</ProductSegment>
		<ID>Auto_Prod_30095</ID>
	</ProductDefinition>
	<Description>Product Information Description</Description>
	<PublishedDate>2016-04-06T12:43:56-04:00</PublishedDate>
	<ID>Product Information ID</ID>
	<Location>
		<EquipmentElementLevel>WorkCell</EquipmentElementLevel>
		<EquipmentID>Equipement ID</EquipmentID>
	</Location>
</ProductInformation>

Custom B2MML MMID Schema Version 1

Using schema version 1, you can import materials for serialized products.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ProductInformation
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:Extended="http://www.wbf.org/xml/B2MML-V0401-AllExtensions"
	xmlns="http://www.wbf.org/xml/B2MML-V0401"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<ProductDefinition>
		<Description>Description Sun Aug 09 21:00:53 IST 2020</Description>
		<Version>1</Version>
		<ProductSegment>
			<Description>desc</Description>
			<EquipmentSpecification>
				<EquipmentSpecificationProperty>
					<ID>ProductionLine</ID>
					<Value>
						<ValueString>Test Line1</ValueString>
					</Value>
				</EquipmentSpecificationProperty>
				<EquipmentSpecificationProperty>
					<ID>StorageUnit</ID>
					<Value>
						<ValueString>REG_UNIT1_LINE1</ValueString>
					</Value>
				</EquipmentSpecificationProperty>
			</EquipmentSpecification>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>WEEBLES_PRODUCT_FAMILY</ValueString>
				</Value>
				<ID>PRODUCT_CATEGORY</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>inch</ValueString>
				</Value>
				<ID>unitofmeasure</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>boolean</DataType>
					<ValueString>false</ValueString>
				</Value>
				<ID>SERIALIZED</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>DateTime</DataType>
					<ValueString>2019-02-14T14:34:22.666Z</ValueString>
				</Value>
				<ID>ITEM_CREATION_DATE</ID>
			</Parameter>
			<Parameter>
				<Value>
					<DataType>string</DataType>
					<ValueString>895623</ValueString>
				</Value>
				<ID>ITEM_DRAWING</ID>
			</Parameter>
			<ID>1</ID>
		</ProductSegment>
		<ID>Auto_Prod_30095</ID>
	</ProductDefinition>
	<Description>Product Information Description</Description>
	<PublishedDate>2016-04-06T12:43:56-04:00</PublishedDate>
	<ID>Product Information ID</ID>
	<Location>
		<EquipmentElementLevel>WorkCell</EquipmentElementLevel>
		<EquipmentID>Equipement ID</EquipmentID>
	</Location>
</ProductInformation>