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: 2016-12-30 19:00 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: Open Package: DOM XML related
PHP Version: 5.0.0RC2 OS: windows xp prof
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC