Req #28609 [Opn->Wfx]: property schemaTypeInfo in DomElement doesn't return anything
| From: | beberlei@php.net | Date: | Sun, 22 Sep 2019 21:01:09 +0000 |
| Subject: | Req #28609 [Opn->Wfx]: property schemaTypeInfo in DomElement doesn't return anything | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222867@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=28609&edit=1
ID: 28609
Updated by: beberlei@php.net
Reported by: msw at seebi dot de
Summary: property schemaTypeInfo in DomElement doesn't return
anything
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: DOM XML related
Operating System: windows xp prof
PHP Version: 5.0.0RC2
Block user comment: N
Private report: N
New Comment:
schemaTypeInfo is removed in latest DOM standard, as such it will not be implemented anymore.
Previous Comments:
------------------------------------------------------------------------
[2004-06-03 12:25:48] rrichards@php.net
schemaTypeInfo is not currently implemented so changing to feature request
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=28609&edit=1