Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path)
| From: | Freyjkell | Date: | Sat, 20 Oct 2007 15:06:26 +0000 |
| Subject: | Proposal of DOM non-standard method: DOMDocument::loadCharacterEntitiesFromDtd($path) | ||
| Groups: | php.xml.dev | ||
| Request: | Send a blank email to php-xml-dev+get-605@lists.php.net to get a copy of this message | ||
DOMDocument::loadCharacterEntitiesFromDtd($path);
I like to load character entities (not whole document type definition).
When I try to do that by creating my own DTD with only character entities, and setting resolveExternals to true, then DTD parser complains that it didn't occur root definition.
The proposed method, if called before DOMDocument::load/loadXML(), would get character entities from DTD (and its modules) and apply them during parsing XML. If called multiply, or if XML contains a DTD reference, entities put before would be overwritten.
--
Freyjkell