Most Pythonic way to find the sibling of an element in XML
问题 Problem: I have the following XML snippet: ...snip... <p class="p_cat_heading">DEFINITION</p> <p class="p_numberedbullet"><span class="calibre10">This</span>, <span class="calibre10">these</span>. </p> <p class="p_cat_heading">PRONUNCIATION </p> ..snip... I need to search the totality of the XML, find the heading that has text DEFINITION , and print the associated definitions. The format of the definitions is not consistent and can change attributes/elements so the only reliable way of