ID: 32761 Updated by: [EMAIL PROTECTED] 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:02:13] 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=32761&edit=1