title: Extracting tables from a DOCX Word document in python
body: <p>I'm trying to extract a content of tables in DOCX Word document, and boy I'm new to xml/xpath.</p>
  
  <pre><code>from docx import *
  document = opendocx('someFile.docx')
  tableList = document.xpath('/w:tbl')
  </code></pre>
  
  <p>This triggers "XPathEvalError: Undefined namespace prefix" error. I'm sure it's just the first one to expect while developing the script. Unfortunately, I couldn't find a tutorial for <a href="http://github.com/mikemaccana/python-docx">python-docx</a>.</p>
  
  <p>Could you kindly provide an example of table extraction?</p>