XML Data format - mschvarc/PB138-Inventory-Management GitHub Wiki

This document provides an overview of XML schemas used. This document is for illustrational purposes only, actual schemas are located in backend/resources/xml_schema.

Shipments and sales - sales will be same except for sales as root and sale as the element under the root

<?xml version="1.0" encoding="utf-8"?>
<shipments> (root)
	<shipment> (0...n)
		<itemEan>EAN</itemEan> (required, positive int)
		<amount>AMOUNT</amount> (required, positive int)
		<date>DATE</date> (required, date)
	<shipment>
</shipments>

Categories

<?xml version="1.0" encoding="utf-8"?>
<catagories> (root)
	<category> (0...n)
		<name>NAME</name> (required, string, length > 0)
		<description>DESC</description> (optional, string, length > 0)
	<category>
</catagories>
Items
<?xml version="1.0" encoding="utf-8"?>
<items> (may not be even there, shipments or sales would be root then - TBD) 
    <item> (0...n items)
      <ean>EAN</ean> (required, positive int)
      <name>NAME</name> (required, string, length > 0)
      <alertThreshold>THRESHOLD</alertThreshold> (optional, positive int)
      <unit>UNIT</unit> (required, string, length > 0)
    </item>
</items>
⚠️ **GitHub.com Fallback** ⚠️