php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #28609 property schemaTypeInfo in DomElement doesn't return anything
Submitted: 2004-06-02 10:58 UTC Modified: 2019-09-22 21:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: msw at seebi dot de Assigned:
Status: Wont fix Package: DOM XML related
PHP Version: 5.0.0RC2 OS: windows xp prof
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: msw at seebi dot de
New email:
PHP Version: OS:

 

 [2004-06-02 10:58 UTC] 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. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-03 12:25 UTC] rrichards@php.net
schemaTypeInfo is not currently implemented so changing to feature request
 [2016-12-30 19:00 UTC] cmb@php.net
-Package: Feature/Change Request +Package: DOM XML related
 [2019-09-22 21:01 UTC] beberlei@php.net
-Status: Open +Status: Wont fix
 [2019-09-22 21:01 UTC] beberlei@php.net
schemaTypeInfo is removed in latest DOM standard, as such it will not be implemented anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC