php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/xmlreader/examples/ |
files >> //opt/php-7.0.1/ext/xmlreader/examples/xmlreader_validatedtd.php |
<?php $indent = 5; /* Number of spaces to indent per level */ $xml = new XMLReader(); $xml->open("dtdexample.xml"); $xml->setParserProperty(XMLREADER::LOADDTD, TRUE); $xml->setParserProperty(XMLREADER::VALIDATE, TRUE); while($xml->read()) { /* Print node name indenting it based on depth and $indent var */ print str_repeat(" ", $xml->depth * $indent).$xml->name."\n"; if ($xml->hasAttributes) { $attCount = $xml->attributeCount; print str_repeat(" ", $xml->depth * $indent)." Number of Attributes: ".$xml->attributeCount."\n"; } } print "\n\nValid:\n"; var_dump($xml->isValid()); ?>y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`