Xml.xmldom.IDOMNode.normalize

From RAD Studio API Documentation
Jump to: navigation, search


Delphi

procedure normalize; safecall;                                  { DOM Level 2 }

C++

virtual HRESULT __safecall normalize() = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.Xmldom.pas
Xml.xmldom.hpp
Xml.xmldom IDOMNode

Description

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

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.

See Also