Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32858 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23758 invoked by uid 1010); 18 Oct 2007 17:15:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23733 invoked from network); 18 Oct 2007 17:15:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2007 17:15:18 -0000 Received: from [127.0.0.1] ([127.0.0.1:28666]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 7B/39-61918-20E87174 for ; Thu, 18 Oct 2007 12:46:58 -0400 X-Host-Fingerprint: 83.4.23.76 aaax76.neoplus.adsl.tpnet.pl Received: from [83.4.23.76] ([83.4.23.76:17482] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/08-61918-93A87174 for ; Thu, 18 Oct 2007 12:30:50 -0400 Message-ID: <24.08.61918.93A87174@pb1.pair.com> To: internals@lists.php.net Date: Thu, 18 Oct 2007 18:30:46 +0200 Reply-To: freyjkell@gmail.com User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 83.4.23.76 Subject: [PHP DOM] Proposal of boolean property DOMDocument::keepCharacterEntities From: freyjkell@gmail.com (Freyjkell) (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). -- Freyjkell JID: nikn@jabber.org