diff --git a/functions.php b/functions.php index c749c18..5c1c590 100644 --- a/functions.php +++ b/functions.php @@ -298,15 +298,14 @@ function export_offer () $export_rows = $query_result->fetch_object(); - /* create a dom document with encoding utf8 */ + //create a dom document with encoding utf8 $domtree = new DOMDocument('1.0', 'UTF-8'); - /* create the root element of the xml tree */ + // create the root element of the xml tree $xmlRoot = $domtree->createElement("offer"); - /* append it to the document created */ + // append it to the document created $offer_export = $domtree->appendChild($xmlRoot); - /* you should enclose the following two lines in a cicle */ $offer_export->appendChild( $domtree->createElement('demand_title',$export_rows->demandTitle)); $offer_export->appendChild(