note 25102 added to function.domnode-child-nodes
| From: | jon dot sprague at rack1 dot php dot net | Date: | Tue, 10 Sep 2002 21:54:21 +0000 |
| Subject: | note 25102 added to function.domnode-child-nodes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36481@lists.php.net to get a copy of this message | ||
To answer hrosas)at(linuxmail)dot(org.
<node>
<child/>
</node>
<node> has 3 children.
1. whitespace between <node> and <child/>
2. <child/>
3. whitespace between <child/> and </node>
The whitespace is treated like text. To avoid this remove all whitespace.
<node><child/></node>
This can get hard to read, but correct.
But, you can tell some programs to ignore the whitespace, so it remains easy to read.
Jon Sprague
--
http://www.php.net/manual/en/function.domnode-child-nodes.php
http://master.php.net/manage/user-notes.php?action=edit+25102
http://master.php.net/manage/user-notes.php?action=delete+25102
http://master.php.net/manage/user-notes.php?action=reject+25102