Re: LoadXML trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 10, 2007 11:40 AM, Dani Castaños <danitao.mailists@xxxxxxxxx> wrote:

> I've checked $request previously and is not empty... it has something
> like:
>
> <?xml version="1.0"?>
> <response>
>  <ticketID>1197026188_ec76</ticketID>
>  <status>KO</status>
>  <errCode>500</errCode>
>  <errMsg>Internal Server Error</errMsg>
> </response>
>

have you been testing this in the context of your application, or have you
also
tried a focused test script?  i would try something trivial, like:

<?php
$xml =
<<<XML
<?xml version="1.0"?>
<response>
 <ticketID>1197026188_ec76</ticketID>
 <status>KO</status>
 <errCode>500</errCode>
 <errMsg>Internal Server Error</errMsg>
</response>
XML;

$domDoc = new DOMDocument();
$domDoc->loadXML($xml);
echo $domDoc->saveXML() . PHP_EOL;
?>

just to ensure the DOM extension is available and working as expected.

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux