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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
16 + 15 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 19:01:29 2024 UTC