#32763 [Opn->Bgs]: Error on schemaValidate();
| From: | chregu@php.net | Date: | Tue, 19 Apr 2005 12:14:39 +0000 |
| Subject: | #32763 [Opn->Bgs]: Error on schemaValidate(); | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77868@lists.php.net to get a copy of this message | ||
ID: 32763
Updated by: chregu@php.net
Reported By: vld3 at rambler dot ru
-Status: Open
+Status: Bogus
Bug Type: DOM XML related
Operating System: win/xp
PHP Version: 5CVS-2005-04-19 (dev)
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-04-19 14:03:39] vld3 at rambler dot ru
Description:
------------
this is fragment 'sampledata.xml':
__________________________________________________________
<xsd:anyAttribute processContents="lax"
namespace="http://www.w3.org/XML/1998/namespace"
/>
_________________________________________________________
error on <xsd:anyAttribute . . . . . . . . . . . . . .
Reproduce code:
---------------
<?php
$dom = new DOMDocument();
//$dom->load('sampledata.xml');
$dom->load('qqqq.xml');
$p = $dom->schemaValidate('myschema.xsd');
if ($p) echo "OK";else echo "ERR";
echo "\n";
?>
Expected result:
----------------
OK
Actual result:
--------------
Warning: compilation error in c:\ELMARK\XmlXsl.php on line 11
Warning: Schemas: attribute anyattr 9 has no type nor reference in
c:\ELMARK\XmlXsl.php on line 11
Warning: Invalid Schema in c:\ELMARK\XmlXsl.php on line 11
ERR
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32763&edit=1