Ask a Question related to PHP Development, Design and Development.
-
Rob Richards #1
Re: [PHP-DEV] [PATCH] ext. dom php_dom.c
From: John Huntjens
[url]http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-D[/url]> When running the test script, in the entitys get not expanded.
> But the standard
>DOMConfiguration has not been implemented at the moment as it is level 3> OMConfiguration
> says about this:
spec, so opted to just extend the specs, at least for now, as it is much
more usable for the user. Concentration has been to at least get things up
to level 2 working while some level 3 functionality has been added.
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.
Rob
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Rob Richards Guest
-
I need this patch as soon as possible
http://support.microsoft.com/default.aspx?scid=kb;en- us;832478&Product=winsvr2003 I am with a university and I cant get email support or... -
patch
Sherry; Follow this to clean and protect your computer: http://www.kellys-korner-xp.com/xp_qr.htm#rpc -- Jupiter Jones An easier way to read... -
John Huntjens #2
Re: [PHP-DEV] [PATCH] ext. dom php_dom.c
<snip>
bad> 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> thing especially with multiple extensions using libxml.
Thanks Rob,
I got the latest snap from [url]http://snaps.php.net/[/url] , 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
John Huntjens Guest
-
Rob Richards #3
Re: [PHP-DEV] [PATCH] ext. dom php_dom.c
John Huntjens wrote in message
The snap is correct. What are you using for configure and what version of> /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
libxml are you using?
Rob
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Rob Richards Guest
-
John Huntjens #4
Re: [PHP-DEV] [PATCH] ext. dom php_dom.c
> > /sys/tmp/php5-200307111130/ext/dom/document.c: In function
configure \>> > `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
> The snap is correct. What are you using for configure and what version of
> libxml are you using?
>
> Rob
--enable-track-vars --with-apxs \
--with-config-file-path=/etc \
--without-mysql \
--without-pear \
--with-interbase \
--with-simplexml \
--with-xsl \
--with-ftp \
--with-gd \
--with-imap \
--with-imap-ssl \
--with-dbase \
--with-zlib
libxml2: 2.5.7
lixxslt: 1.0.31
John
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
John Huntjens Guest



Reply With Quote

