XmlNode.Normalize Method ()

 

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.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public virtual void Normalize()

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: