XmlNode.Normalize Method

Definition

Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes.

public:
 virtual void Normalize();
public virtual void Normalize ();
abstract member Normalize : unit -> unit
override this.Normalize : unit -> unit
Public Overridable Sub Normalize ()

Remarks

This method 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 lookups) that depend on a particular document tree structure are to be used.

Applies to