JODF > Tutorial > Get all content elements

The example shows you how to use method getContentElements. The getContentElements method recursively retrieves all elements contained inside content of one element. All classes implement the IContentElement (like Document, Paragraph, Text, Table, List, ...) have getContentElements method. It is different than getContent method. The getContent method returns "first level" elements.

Need help? Ask our developers: