note 79973 added to function.xmlreader-isvalid
| From: | patryk dot szczyglowski at gmail dot com | Date: | Fri, 21 Dec 2007 14:10:41 +0000 |
| Subject: | note 79973 added to function.xmlreader-isvalid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133850@lists.php.net to get a copy of this message | ||
isValid() always returns false unless you enable checking for validity by:
$reader->setParserProperty(XMLReader::VALIDATE, true);
where $reader is XMLReader object.
Beware, once you enable this check, PHP will search for DTD file and possibly produce warnings.
If you just need to check if XML file is well formed, successful loading into XMLReader object is
usually enough.
----
Server IP: 82.160.94.10
Probable Submitter: 193.222.135.252
----
Manual Page -- http://www.php.net/manual/en/function.xmlreader-isvalid.php
Edit -- https://master.php.net/note/edit/79973
Del: integrated -- https://master.php.net/note/delete/79973/integrated
Del: useless -- https://master.php.net/note/delete/79973/useless
Del: bad code -- https://master.php.net/note/delete/79973/bad+code
Del: spam -- https://master.php.net/note/delete/79973/spam
Del: non-english -- https://master.php.net/note/delete/79973/non-english
Del: in docs -- https://master.php.net/note/delete/79973/in+docs
Del: other reasons-- https://master.php.net/note/delete/79973
Reject -- https://master.php.net/note/reject/79973
Search -- https://master.php.net/manage/user-notes.php