public function processDomainGSheetObjects(array $inventories)
    {
        $dom = new DomDocument("1.0", "UTF-8");
        $products = $dom->createElement('Products');

        /** @var Inventory $inventory */
        foreach ($inventories as $inventory) {
            $product = $dom->createElement('Product');
            $inventoryXmlElement = $this->buildInventoryElement($dom, $inventory);
            $product->appendChild($inventoryXmlElement);
            $products->appendChild($product);
        }

        $dom->appendChild($products);

        return $this->outputFormattedXml($dom);
    }