#28609 [Opn]: property schemaTypeInfo in DomElement doesn't return anything

From: Date: Thu, 03 Jun 2004 10:25:49 +0000
Subject: #28609 [Opn]: property schemaTypeInfo in DomElement doesn't return anything
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-60318@lists.php.net to get a copy of this message
ID: 28609 Updated by: rrichards@php.net Reported By: msw at seebi dot de Status: Open -Bug Type: DOM XML related +Bug Type: Feature/Change Request Operating System: windows xp prof PHP Version: 5.0.0RC2 New Comment: schemaTypeInfo is not currently implemented so changing to feature request Previous Comments: ------------------------------------------------------------------------ [2004-06-02 10:58:49] msw at seebi dot de Description: ------------ I've tried the property schemaTypeInfo in DomElement. It seems to my that this property doesn't work, because this property doesn't return an object from DomTypeInfo class. Reproduce code: --------------- $dom = new DomDocument(); <?php $dom->preserveWhiteSpace=false; $t=$dom->load(dirname(__FILE__)."/shipping.xml"); if(!$dom) { echo "Error while parsing the document\n"; exit(); } $dom->schemaValidate(dirname(__FILE__)."/shipping.xsd"); $tags=$dom->getElementsByTagName("price"); print ($tags->item(0)->nodeName); $type=$tags->item(0)->schemaTypeInfo; print (get_class($type)); ?> I've used the examples shipping.xml and shipping.xsd which comes with PHP 5 RC 2. Expected result: ---------------- An object of DomTypeInfo in $type Actual result: -------------- null. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28609&edit=1

« previous php.bugs (#60318) next »