title: Appending a tag at targeted place
body: <p><em><strong>strong text</strong></em></p>
  <ol>
  <li><p>I have following output</p>
  </li>
  <li><p>I want to add tags before and after &quot;reporting formalities&quot;</p>
  </li>
  <li><p>I also want to add tags before means and after the full stop  . or semi  ;</p>
  </li>
  <li><p>finally export the appended file</p>
  </li>
  <li><p>I have This file name is: /content/data/32010L0065.xml
  tag name: heading
  text name: Definitions
  tail name:
  /tMy next sibling is: {http://docs.oasis-open.org/legaldocml/ns/xml/3.0}list
  &quot;reporting formalities&quot; means the information set out in the Annex which;
  &quot;electronic transmission of data&quot; means the process of transmitting information that has been encoded digitally, using a revisable.</p>
  </li>
  </ol>
  <pre><code>file_content = open ('.akn_file', 'a+')
  file_content.write
  file_content.close()
  </code></pre>