note 46797 added to function.dom-domdocument-getelementbyid

From: Date: Sat, 23 Oct 2004 21:38:57 +0000
Subject: note 46797 added to function.dom-domdocument-getelementbyid
Groups: php.notes 
Request: Send a blank email to php-notes+get-79003@lists.php.net to get a copy of this message
forget about this function.... Tested it in PHP 5.0.2 and: - To use it you have to validate the document against a DTD (XSD does not work... WHY!!!???)... - If you create an XML document on the fly you have to validate the document after each node you add.... (jeeez....) - does not work well at all... To get an element by ID use: DOMXPath->query("id('SEARCH_STR_ID')") Yeah... and LEARN XPATH!!! you can't be serious about XML if you don't learn Xpath.... Have fun, Tony I DO LOVE PHP 5... ---- Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-getelementbyid.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46797 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46797&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46797&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79003) next »