#47446 [Opn->Csd]: Error docdocument::schemaValidate a valid schema
| From: | apaella at gmail dot com | Date: | Thu, 19 Feb 2009 10:59:55 +0000 |
| Subject: | #47446 [Opn->Csd]: Error docdocument::schemaValidate a valid schema | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133995@lists.php.net to get a copy of this message | ||
ID: 47446
User updated by: apaella at gmail dot com
Reported By: apaella at gmail dot com
-Status: Open
+Status: Closed
Bug Type: DOM XML related
Operating System: WIN XP PRO
PHP Version: 5.3.0beta1
New Comment:
updated libxml to version 2.7.3 and fixed.
sorry for my mistake
Previous Comments:
------------------------------------------------------------------------
[2009-02-19 08:18:19] apaella at gmail dot com
Description:
------------
Trying to validate a valid XML (AltovaXML commandline & Liquid XML
Studio says that) I got a "local complex type:The content type
must specify a particle." error...
Reproduce code:
---------------
$xmlString= '<?xml version="1.0"?>
<OTA_AirAvailRQ xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
TimeStamp="2009-02-18T16:24:59" MaxResponses="5"
Target="Production"
Version="2008.02" SequenceNmbr="1" EchoToken="960"
xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05
http://www.opentravel.org/2008B/OTA_AirAvailRQ.xsd">
<POS>
<Source PseudoCityCode="IPCC" />
</POS>
<OriginDestinationInformation>
<DepartureDateTime>2009-03-10T20:00:00</DepartureDateTime>
<OriginLocation LocationCode="TNR" />
<DestinationLocation LocationCode="OLB" />
</OriginDestinationInformation>
<TravelPreferences MaxStopsQuantity="2" />
</OTA_AirAvailRQ>';
$xdoc = new DomDocument();
$xdoc->loadXML($xmlString);
$xdoc->schemaValidate("http://www.opentravel.org/2008B/
OTA_AirAvailRQ.xsd");
Expected result:
----------------
A "valid schema" result
Actual result:
--------------
Warning : "local complex type:The content type
must specify a particle."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47446&edit=1