title: Convert DOCX TO HTML Programmatically using Python
body: <p>I already have implemented HTML to DOCX in Python where I have parsed HTML using BeautifulSoup. I traversed each and every HTML tag recursively and then by using Python-Docx library, I created Docx document.</p>
  
  <p>Now I want to do the reverse thing and convert Docx to HTML string. I read about reading existing document by using Python Docx library (<a href="https://python-docx.readthedocs.io/en/latest/user/documents.html" rel="nofollow noreferrer">https://python-docx.readthedocs.io/en/latest/user/documents.html</a>). However, I could not find an approach to traverse each document object and convert them into HTML string. </p>
  
  <p>Is there any way where I can do such reverse parsing? I have tried libraries <a href="https://pypi.org/project/docx2html/" rel="nofollow noreferrer">https://pypi.org/project/docx2html/</a> and <a href="https://pypi.org/project/mammoth/" rel="nofollow noreferrer">https://pypi.org/project/mammoth/</a>. However, I found them ignoring some styles and I would like to write the code on my self instead of using the library.</p>
  
  <p>Any help is greatly appreciated.</p>