note 76140 added to function.xmlreader-getattribute

From: Date: Mon, 02 Jul 2007 15:15:19 +0000
Subject: note 76140 added to function.xmlreader-getattribute
Groups: php.notes 
Request: Send a blank email to php-notes+get-128158@lists.php.net to get a copy of this message
might be obvious, but not to everyone ;-) ... when reading attributes from a node that has sub-nodes (and creating an output from this node), the output will be issued twice, once on the <ELEMENT> tag and once on the end tag </ELEMENT>. To avoid this, you can test on which part of the node you are using the property nodeType. It'll be 1 for the element, 15 for the end element. ---- Server IP: 217.13.201.10 Probable Submitter: 134.171.29.191 ---- Manual Page -- http://www.php.net/manual/en/function.xmlreader-getattribute.php Edit -- https://master.php.net/note/edit/76140 Del: integrated -- https://master.php.net/note/delete/76140/integrated Del: useless -- https://master.php.net/note/delete/76140/useless Del: bad code -- https://master.php.net/note/delete/76140/bad+code Del: spam -- https://master.php.net/note/delete/76140/spam Del: non-english -- https://master.php.net/note/delete/76140/non-english Del: in docs -- https://master.php.net/note/delete/76140/in+docs Del: other reasons-- https://master.php.net/note/delete/76140 Reject -- https://master.php.net/note/reject/76140 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128158) next »