#47446 [NEW]: Error docdocument::schemaValidate a valid schema
From: apaella at gmail dot com
Operating system: WIN XP PRO
PHP version: 5.3.0beta1
PHP Bug Type: DOM XML related
Bug description: Error docdocument::schemaValidate a valid schema
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 bug report at http://bugs.php.net/?id=47446&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47446&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47446&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47446&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=47446&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47446&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=47446&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=47446&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=47446&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=47446&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=47446&r=support
Expected behavior: http://bugs.php.net/fix.php?id=47446&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=47446&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=47446&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=47446&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47446&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47446&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=47446&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=47446&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=47446&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=47446&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=47446&r=mysqlcfg
Thread (3 messages)
- apaella at gmail dot com