OBO titles and headings
Capture the title of the entry using titleGroup within document. Capture each section div[1-7,N] heading using titleGroup.
/document/titleGroup/title
//div1/titleGroup/title
Example - Entry title
<document id="obo-9780195390155-0021">
<titleGroup><title>
<p>Ancient Greek Law</p></title>
</titleGroup>
<textMatter><!-- Content skipped for brevity -->
</textMatter>
</document>
Example - Section title
<div1 id="obo-9780195390155-0021-div1-0003">
<titleGroup><title>
<p>Greek Law</p></title>
</titleGroup>
</div1>