title: How to skip a node which raises an error when using cElementTree.iterparse()
body: <p>I am trying to parse a very big XML file and do lower case and remove punctuation. 
  The problem is that when I try to parse this file using the <code>cET parse function</code> for big files, at some point it comes across a bad formatted tag or character which raises <code>syntax error</code>:</p>
  
  <pre><code>SyntaxError: not well-formed (invalid token): line 639337, column 4
  </code></pre>
  
  <p>Note: It is nearly impossible for me to read the file, so I can not see where the problem is.</p>
  
  <p>How can I skip or fix this?</p>
  
  <pre><code>from xml.etree import cElementTree as cET
  
  for event, elem in cET.iterparse(xmlFile, events=("start", "end")):
      ...do something...
  </code></pre>