File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,6 @@ following command::
311
311
As expected from the Document printout our example contains two Sections. The
312
312
printout and attributes of a Section are explained in the next chapter.
313
313
314
-
315
314
The Sections
316
315
------------
317
316
@@ -553,6 +552,18 @@ returned list will have no affect on the actual Property values. If you want to
553
552
make changes to a Property value, either use the ``append ``, ``extend `` and ``remove ``
554
553
methods or assign a new value list to the property.
555
554
555
+ Printing overviews to navigate the contents of an odML document
556
+ ---------------------------------------------------------------
557
+
558
+ The odML entities ``Property ``, ``Section `` and ``Document `` feature
559
+ a method that allows to print a tree-like representation of
560
+ all child entities to get an overview of the file structure.
561
+
562
+ >>> MYodML.pprint()
563
+ >>> sec = MYodML[' TheCrew' ]
564
+ >>> sec.pprint()
565
+ >>> prop = odmlEX[' TheCrew' ].properties[' NameCrewMembers' ]
566
+ >>> prop.pprint()
556
567
557
568
-------------------------------------------------------------------------------
558
569
You can’t perform that action at this time.
0 commit comments