Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3363 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31823 invoked by uid 1007); 11 Jul 2003 12:03:51 -0000 Message-ID: <20030711120351.31820.qmail@pb1.pair.com> To: internals@lists.php.net References: <015401c347a2$d8b59a00$06dea8c0@cyberware.local> Date: Fri, 11 Jul 2003 14:03:49 +0200 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Posted-By: 80.126.85.128 Subject: Re: [PHP-DEV] [PATCH] ext. dom php_dom.c From: john@ceressoft.nl ("John Huntjens") > Grab the latest code from cvs (added yesterday). New properties were added > to the domDocument. (They are all booleans). > > validateOnParse - default FALSE (will load and validate against DTD) > resolveExternals - default FALSE (will load the DTD without performaing > validation) > preserveWhiteSpace - default TRUE > substituteEntities - default FALSE > > Your code would look like the following: > > $dom = new domDocument(); > $dom->resolveExternals = TRUE; > $dom->substituteEntities = TRUE; > $dom->load('test.xml'); > print $dom->savexml(); > > Note: these properties have not yet been worked into the save methods yet, > only the load methods. > > Also, use of libxml globals i.e. xmlSubstituteEntitiesDefault(1); - very bad > thing especially with multiple extensions using libxml. Thanks Rob, I got the latest snap from http://snaps.php.net/ , version php5-200307111130.tar.tar, but that one wil not compile document.c /sys/tmp/php5-200307111130/ext/dom/document.c: In function `php_dom_ctx_error': /sys/tmp/php5-200307111130/ext/dom/document.c:120: parse error before `parser' /sys/tmp/php5-200307111130/ext/dom/document.c:122: `parser' undeclared (first use in this function) /sys/tmp/php5-200307111130/ext/dom/document.c:122: (Each undeclared identifier is reported only once /sys/tmp/php5-200307111130/ext/dom/document.c:122: for each function it appears in.) make: *** [ext/dom/document.lo] Error 1 Do I have the wrong snap? John