title: Exception when parsing a xml using lxml
body: <p>I wrote this code to validate my xml file via a xsd </p>
  
  <pre><code>def parseAndObjectifyXml(xmlPath, xsdPath):
      from lxml import  etree
  
      xsdFile = open(xsdPath)
      schema = etree.XMLSchema(file=xsdFile)
      xmlinput = open(xmlPath)
      xmlContent = xmlinput.read()
      myxml = etree.parse(xmlinput) # In this line xml input is empty
      schema.assertValid(myxml)
  </code></pre>
  
  <p>but when I want to validate it, my xmlinput is empty but my xmlContent is not empty.
  what is the problem?</p>