In KnowWE the content of an article is managed as a hierarchical structure of the content elements. Every node of that tree contains a particular fragment of the source text of the page. We call such a node a Section. No matter what kind of extension for KnowWE should be implemented, sections will play a fundamental role in any case. Therefore handling, searching, navigation, and modification of sections are hot topics in KnowWE programming.
The class Sections provides numerous utility methods for working with sections. Often it is necessary to find a section of a particular type, which is an ancestor or successor of a given section. Therefore, the following methods can be employed: