/** * {@inheritDoc} * * Format: * * <Product_Add> * <Code>ale-gallon</Code> * <Name><![CDATA[Ale, gallon jug]]></Name> * <Price>2.00</Price> * <Cost>1.50</Cost> * <Weight>8.00</Weight> * <Description><![CDATA[A gallon jug of quality ale.]]></Description> * <Taxable>Yes</Taxable> * <Active>Yes</Active> * <CanonicalCategoryCode>food</CanonicalCategoryCode> * <AlternateDisplayPage>PROD</AlternateDisplayPage> * <ThumbnailImage></ThumbnailImage> * <FullSizeImage></FullSizeImage> * </Product_Add> * */ public function toXml($version = Version::CURRENT, array $options = array()) { $xml = null; $xmlObject = new SimpleXMLElement('<Fragment></Fragment>'); foreach ($xmlObject->children() as $child) { $xml .= $child->saveXml(); } return $xml; }