note 80546 added to function.xmlreader-setrelaxngschemasource
| From: | anzenews at volja dot net | Date: | Mon, 21 Jan 2008 20:18:12 +0000 |
| Subject: | note 80546 added to function.xmlreader-setrelaxngschemasource | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135295@lists.php.net to get a copy of this message | ||
This function and setRelaxNGSchema() seem picky about when they are called - right after the call to
open(). For example:
<?php
$schema="/path/to/schema.rng";
$xmlfile="/path/to/xml.xml";
$xml = new XMLReader();
$xml->open($xmlfile);
$xml->setRelaxNGSchemaSource(file_get_contents($schema));
while ($xml->read()) {
// ...
}
$xml->close();
?>
----
Server IP: 213.250.2.28
Probable Submitter: 193.77.242.247
----
Manual Page -- http://www.php.net/manual/en/function.xmlreader-setrelaxngschemasource.php
Edit -- https://master.php.net/note/edit/80546
Del: integrated -- https://master.php.net/note/delete/80546/integrated
Del: useless -- https://master.php.net/note/delete/80546/useless
Del: bad code -- https://master.php.net/note/delete/80546/bad+code
Del: spam -- https://master.php.net/note/delete/80546/spam
Del: non-english -- https://master.php.net/note/delete/80546/non-english
Del: in docs -- https://master.php.net/note/delete/80546/in+docs
Del: other reasons-- https://master.php.net/note/delete/80546
Reject -- https://master.php.net/note/reject/80546
Search -- https://master.php.net/manage/user-notes.php