Subversion Repositories ALCASAR

Rev

Rev 2976 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2976 Rev 3037
Line 169... Line 169...
169
//            $error = $xmlerr->addCData('Error', $arrLine['message']);
169
//            $error = $xmlerr->addCData('Error', $arrLine['message']);
170
            $error = $xmlerr->addChild('Error');
170
            $error = $xmlerr->addChild('Error');
171
            $error->addAttribute('Message', $arrLine['message']);
171
            $error->addAttribute('Message', $arrLine['message']);
172
            $error->addAttribute('Function', $arrLine['command']);
172
            $error->addAttribute('Function', $arrLine['command']);
173
        }
173
        }
174
        header("Cache-Control: no-cache, must-revalidate\n");
174
        header('Cache-Control: no-cache, must-revalidate');
175
        header("Content-Type: text/xml\n\n");
175
        header('Content-Type: text/xml');
176
        echo $xml->getSimpleXmlElement()->asXML();
176
        echo $xml->getSimpleXmlElement()->asXML();
177
        exit();
177
        exit();
178
    }
178
    }
179
    /**
179
    /**
180
     * add the errors to an existing xml document
180
     * add the errors to an existing xml document