Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6836 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3237 invoked by uid 1010); 8 Jan 2004 00:39:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3192 invoked from network); 8 Jan 2004 00:39:54 -0000 Received: from unknown (HELO shiva.mind.de) (212.42.230.204) by pb1.pair.com with SMTP; 8 Jan 2004 00:39:54 -0000 Received: from [192.168.1.100] (p508EB61A.dip.t-dialin.net [80.142.182.26]) by shiva.mind.de (Postfix) with ESMTP id C8D4297B64; Thu, 8 Jan 2004 01:39:47 +0100 (CET) Date: Thu, 8 Jan 2004 01:41:56 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1371435700390.20040108014156@marcus-boerger.de> To: dharana Cc: Ken Tossell , internals@lists.php.net In-Reply-To: <3FFC9FA9.5080502@dharana.net> References: <3FFC9FA9.5080502@dharana.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] DOM Examples? From: helly@php.net (Marcus Boerger) Hello dharana, Thursday, January 8, 2004, 1:09:13 AM, you wrote: > Hello Ken, > I started using the php5 new dom extension like this: > -- > asort(get_class_methods(new domDocument)); > foreach ($ar_methods as $method) > echo $method.'
'; ?>> > -- > I found the rest of the here: > http://www.w3.org/TR/DOM-Level-2-Core/core.html > You can then load a real xml file and start inspecting the different > classes (node, nodeList, etc). > I hope this helps, > Ken Tossell wrote: >> Hey Internals, >> >> Would anyone be able to write, or point me to, some examples for using the >> new DOM extension? I'm looking to do some documenting, but I need to know >> how to use our implementation first. >> >> Thanks, >> Ken >> > -- > dharana > This message represents the official view of the voices in my head. Funny :-) what about this: php -r 'foreach(get_declared_classes() as $c) echo "$c\n";'|grep dom|php -R 'reflection_class::export($argn);' php -r 'foreach(get_declared_classes() as $c) if (!strncmp("dom",$c,3)) reflection_class::export($c);' -- Best regards, Marcus mailto:helly@php.net