normalize

Usage

normalize xpath

Description

normalize puts all text nodes in the full depth of the sub-tree underneath each node selected by a given xpath, 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.