Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4432 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28376 invoked by uid 1010); 8 Sep 2003 16:42:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 28319 invoked by uid 1007); 8 Sep 2003 16:42:00 -0000 Message-ID: <20030908164200.28318.qmail@pb1.pair.com> To: internals@lists.php.net References: <20030908151120.7156.qmail@pb1.pair.com> <3F5C9D85.8010403@bitflux.ch> <20030908152504.28435.qmail@pb1.pair.com> <3F5CA657.4050807@bitflux.ch> Date: Mon, 8 Sep 2003 18:41:59 +0200 Lines: 29 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") > you have to define the ids with a DTD. there are no default > "id"-attributes in the XML-specs. Ahh, that clarify's alot. > Add: > > > ]> > > to your XML document, and it should work. Thanks for your quick answer, this quireled me al day! > or use XPath to access the nodes: > "//@id='id1'" Can you give me a pointer how to do that in php5, I thought that this was not implemented (yet)? Gr, John