Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28462 invoked by uid 1010); 8 Sep 2003 15:25:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28437 invoked by uid 1007); 8 Sep 2003 15:25:04 -0000 Message-ID: <20030908152504.28435.qmail@pb1.pair.com> To: internals@lists.php.net References: <20030908151120.7156.qmail@pb1.pair.com> <3F5C9D85.8010403@bitflux.ch> Date: Mon, 8 Sep 2003 17:25:03 +0200 Lines: 58 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] dom_document_get_element_by_id From: john@ceressoft.nl ("John Huntjens") > > Is this function working? > yes. > > see: > > http://bugs.php.net/bug.php?id=17629 > http://bugs.php.net/bug.php?id=16647 > > for details I do not understand the workaround? I am using latest cvs php5 capitalizing the ID's to gives no result. Should I define a DTD to find the ID's? Gr, John > > chregu > > > > > Test program: > > > > $dom = new domDocument(); > > $dom->load("test.xml"); > > $node = $dom->getElementById("id1"); > > print_r($node); > > > > Test file: > > > > > > > > > > > > > > > > It seems to me that always a emty object is returned? > > > > -- > christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich > phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 > http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB