ID:               28609
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to