Re: [PHP DOM] Proposal of boolean property DOMDocument::keepCharacterEntities

From: Date: Thu, 18 Oct 2007 20:03:54 +0000
Subject: Re: [PHP DOM] Proposal of boolean property DOMDocument::keepCharacterEntities
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32863@lists.php.net to get a copy of this message
Not the place for a feature request and not going to happen. It is not supported in libxml2 because it is against the XML specs. Rob Freyjkell wrote:
(bool) DOMDocument::keepUnknownCharacterEntities = false; If set to true (before calling DOMDocument::load() or DOMDocument::loadXML()), when parser will occur an unknown entity, it won't crash, but let it alone. In DOMNode::textContent, DOMNode::getAttribute() and similar, they will be omitted. During importing it to another document, they will be moved without any changes. It could be useful for editing XHTML documents. DOMDocument::resolveExternals is very slow. Even if DTD is on disk, it includes many crappy code (i.e. references to XML Schema).


« previous php.internals (#32863) next »