title: Parse html(or other xml) inside xml with Python 3
body: <p>I am trying to parse big files that have html embedded or included inside XML. I've been able to extract the whole content of the main xml but I am not able to access to the content of the embedded html.</p>
  
  <p>For example, I would have a file of this structure:</p>
  
  <pre><code>&lt;TitleContentExtra&gt;Part 1&lt;/TitleContentExtra&gt;&lt;SubTitle /&gt;&lt;TitleOriginal /&gt;&lt;Abstract /&gt;&lt;FullText&gt;
  &amp;lt;p&amp;gt;&amp;lt;strong class="grey" id="authordate"&amp;gt; &amp;lt;span class="gray pointer"&amp;gt;Argh, &amp;lt;em&amp;gt;et al.&amp;lt;/em&amp;gt; 2001 [+] &amp;lt;/span&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;
  &amp;lt;div class="bkg_gray" id="authordate2_container" style="display: none;"&amp;gt;
  &amp;lt;p&amp;gt;It is a big product [some_product]:[bib2bib]&amp;lt;/p&amp;gt;
  &amp;lt;ul class="ul_style_1"&amp;gt;
      &amp;lt;li&amp;gt;More text goes here &amp;lt;/li&amp;gt;
      &amp;lt;li&amp;gt;Why do I have to do it? &amp;lt;strong class="gray"&amp;gt;Some text goes there&amp;lt;/strong&amp;gt; &amp;lt;/li&amp;gt;
  &lt;/FullText&gt;&lt;FullTextOriginal /&gt;&lt;FullTextComment&gt;
  &amp;lt;ol class="ol_style_3" id="notes_container"&amp;gt;
      &amp;lt;li&amp;gt;&amp;lt;span id="note_a"&amp;gt;&amp;lt;a name="notea"&amp;gt;&amp;lt;/a&amp;gt;Extra information here.&amp;lt;/span&amp;gt;&amp;lt;/li&amp;gt;
  &lt;/FullTextComment&gt;
  </code></pre>
  
  <p>My code in Python 3 would be something like that:</p>
  
  <pre><code>try:
      from lxml import etree as ET
  
  except ImportError:
      import xml.etree.ElementTree as ET
  
  tree = ET.ElementTree(file='Files\\xml_File.xml')
  root = tree.getroot()
  
  for child in root:
      print (child.tag, child.attrib)
  
  print ('\n------------------\n')
  for elem in tree.iter():
      #print (elem.tag, 'atrribute: ',  elem.attrib)
      for value in elem.getiterator(tag=elem.tag):
          #print (value.text)
          extags=str(value.text)
          try:
              xmldata=ET.fromstring(extags)
              print (xmldata.tags)
          except:
              print ('There is an error: :', extags)
  </code></pre>
  
  <p>I am not able to parse th embedded html/xml text. I've tried many options with soupparser, parse,... But none works, or I've not been able to make them work.</p>
  
  <p>I need to parse the whole xml file to later get a list of all tags and attributes for further process of them.</p>