/** * @param string $_errorString * @param XmlDocument $_xmlObj * @param int $_code = null */ function PrintErrorAndExit($_errorString, &$_xmlObj, $_code = null) { if ($_xmlObj) { $_errorNote = new XmlDomNode('error', $_errorString, true); if (null !== $_code) { $_errorNote->AppendAttribute('code', (int) $_code); } $_xmlObj->XmlRoot->AppendChild($_errorNote); } CXmlProcessing::PrintXML($_xmlObj); }
function _localPrintXML(&$_xmlRes, $_startTime) { CXmlProcessing::PrintXML($_xmlRes, $_startTime); }