|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-03 12:25 UTC] rrichards@php.net
[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
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 02:00:01 2025 UTC |
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.