String dataDir = Utils.getSharedDataDir(LoadingNotebook.class) + "Notebook/"; Notebook notebook = new Notebook(dataDir + "Notizbuch �ffnen.onetoc2"); for (INotebookChildNode notebookChildNode : notebook) { System.out.println(notebookChildNode.getDisplayName()); if (notebookChildNode instanceof Document) { // Do something with child document } else if (notebookChildNode instanceof Notebook) { // Do something with child notebook } }