note 45857 added to function.dom-domdocument-normalize
| From: | gem at rellim dot com | Date: | Tue, 21 Sep 2004 19:55:41 +0000 |
| Subject: | note 45857 added to function.dom-domdocument-normalize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77123@lists.php.net to get a copy of this message | ||
Here is the DOM2 descrtiption of normalize:
normalize modified in DOM Level 2
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute
nodes, into a "normal" form where only structure (e.g., elements, comments, processing
instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither
adjacent Text nodes nor empty Text nodes. This can be used to ensure that the DOM view of a
document is the same as if it were saved and re-loaded, and is useful when operations (such as
XPointer [XPointer] lookups) that depend on a particular document tree structure are to be used.
Note: In cases where the document contains CDATASections, the normalize operation alone may not
be sufficient, since XPointers do not differentiate between Text nodes and CDATASection nodes.
No Parameters
No Return Value
No Exceptions
----
Manual Page -- http://www.php.net/manual/en/function.dom-domdocument-normalize.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45857
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45857&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45857&report=yes
Search -- http://master.php.net/manage/user-notes.php