Re: Divergence from DOM standard

From: Date: Wed, 10 May 2006 09:42:42 +0000
Subject: Re: Divergence from DOM standard
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-579@lists.php.net to get a copy of this message
Rob Richards wrote:
The only difference here is working with a DOMElement. Per specs it should return NULL but for convenience it returns all text content of all descendants.
Why such divergence, when there is textContent which can be used for such task? DOM is not very good XML tree based API, but it is standard so things which you learn in Java DOM or other languages DOM, should behave in same way on different platforms. -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------ Nejbližší termíny školení: ** DocBook 15.-17.5.2006 ** XSL-FO 12.-13.6.2006 ** ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 ** ------------------------------------------------------------------ http://xmlguru.cz Blog mostly about XML for English readers ------------------------------------------------------------------

Attachment: [application/x-pkcs7-signature] S/MIME Cryptographic Signature smime.p7s
« previous php.xml.dev (#579) next »