Table of Contents
Fetching the Table of Contents for an expression.
You can get a description of the table of contents (TOC) of a work. This includes the chapters, parts, sections and schedules that make up the legislation, based on the structure captured by the Laws.Africa editor.
Each item in the table of contents has this structure:
"title": "Chapter 1 - Interpretation",
"children": [ "..." ]
Each of these fields is described in the table below.
The unique XML element id of this item. (optional)
The Akoma Ntoso element name of this item.
The number of this item, such as a chapter, part or section number. (optional)
The heading of this item (optional)
A derived, friendly title of this item, taking
The component of the Akoma Ntoso document that this item is a part of, such as
The subcomponent of the component that this item is a part of, such as a chapter. (optional)
The API URL for this item, which can be used to fetch XML, HTML and other details of just this part of the document.
A possibly-empty array of TOC items that are children of this item.
Table of contents for an expression
You can use the
urlfield from an item in the Table of Contents to fetch the details of just that item in XML or HTML.
Content for a single part, chapter or section