ID: 29146
Updated by: [EMAIL PROTECTED]
Reported By: vincent at greenchili dot nl
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: linux-2.4.20-30.9 and WinXP
PHP Version: 5.0.0
New Comment:
This is not a bug in PHP. The XML Schema implementation of libxml2 is
not perfect yet. Improving patches are on the way, but it's nothing we
can do, it's all handled by libxml2. Complain there and send patches
;)
Previous Comments:
------------------------------------------------------------------------
[2004-07-14 15:19:21] vincent at greenchili dot nl
Description:
------------
Looks like the xs:any element is not implemented for XML Schema
Reproduce code:
---------------
<?php
$message = new DomDocument();
$message -> loadXML("<test><ok /></test>");
$message -> schemavalidate("schemas/test.xsd");
print "Ok";
?>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="test">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Expected result:
----------------
Ok
Actual result:
--------------
Warning: Unimplemented block at ..\xmlschemas.c:3246 in D:\My
Webs\test.php on line 4
Warning: Element test content check failed in D:\My Webs\test.php on
line 4
Ok
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29146&edit=1