[{TableOfContents}] !! Introduction 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. !! Finding other sections from a given section 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: ! Find ancestor %%prettify {{{ public static <OT extends Type> Section<OT> findAncestorOfType(Section<?> section, Class<OT> clazz) { }}} /% Returns the the first section, that matches the passed type class, on the path to the root. %%tags howto %