php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32763 Error on schemaValidate();
Submitted: 2005-04-19 14:03 UTC Modified: 2005-04-19 14:14 UTC
From: vld3 at rambler dot ru Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5CVS-2005-04-19 (dev) OS: win/xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vld3 at rambler dot ru
New email:
PHP Version: OS:

 

 [2005-04-19 14:03 UTC] 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 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-19 14:14 UTC] chregu@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 02:02:52 2024 UTC