svn: /phpdoc/en/trunk/reference/xmlreader/xmlreader/ isvalid.xml

From: Date: Mon, 09 Jun 2014 05:55:55 +0000
Subject: svn: /phpdoc/en/trunk/reference/xmlreader/xmlreader/ isvalid.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-12520@lists.php.net to get a copy of this message
kalle Mon, 09 Jun 2014 05:55:55 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=333737 Log: Add a note about XMLReader::isValid() only checks for the current node, not the entire document and improve the comment in the example a little Changed paths: U phpdoc/en/trunk/reference/xmlreader/xmlreader/isvalid.xml Modified: phpdoc/en/trunk/reference/xmlreader/xmlreader/isvalid.xml =================================================================== --- phpdoc/en/trunk/reference/xmlreader/xmlreader/isvalid.xml 2014-06-08 23:24:13 UTC (rev 333736) +++ phpdoc/en/trunk/reference/xmlreader/xmlreader/isvalid.xml 2014-06-09 05:55:55 UTC (rev 333737) @@ -31,7 +31,8 @@ <?php $xml = XMLReader::open('test.xml'); -// You must to use it +// The validate parser option must be enabled for +// this method to work properly $xml->setParserProperty(XMLReader::VALIDATE, true); var_dump($xml->isValid()); @@ -41,6 +42,14 @@ </example> </para> </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + <note> + <simpara> + This checks the current node, not the entire document. + </simpara> + </note> + </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.cvs (#12520) next »