ID:               29655
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mc at genetech dot co dot za
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: Windows XP SP1
 PHP Version:      5.0.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

it returns the current simplexml node as a domelement


Previous Comments:
------------------------------------------------------------------------

[2004-08-13 17:06:56] mc at genetech dot co dot za

Description:
------------
dom_import_simplexml() as described in the following document:
http://www.zend.com/php5/articles/php5-xmlphp.php#Heading16,
is meant to return a DOMDocument, but instead returns a DOMElement.

Reproduce code:
---------------
<?php
$xml_file = "moo.xml";
$schema_file = "boo.xsd";

$src = simplexml_load_file($xml_file);            
$dom = dom_import_simplexml($src);               
$dom->schemaValidate($schema_file);
?>


Expected result:
----------------
A validation message based on the XML schema file and the XML instance
file.

Actual result:
--------------
Output: Fatal error: Call to undefined method
DOMElement::schemaValidate() 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29655&edit=1

Reply via email to