RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDOMNode.normalize Method

Converts the subtree beneath this node to the structure it would have if it were just loaded from a document.

Pascal
procedure normalize; safecall;
C++
__fastcall normalize();

Call normalize to consolidate adjacent text nodes and remove any empty text nodes in the subtree beneath this node. This method ensures that for all child nodes of this node and of its attributes, only structure nodes (element nodes, comments, processing instructions, CDATA sections, and entity references) separate text nodes and that there are no empty text nodes. This is useful for operations (such as XPointer lookups) that depend on a particular structure in the node hierarchy. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!