title: Error occurred while parsing XML content from a text file
body: <p>I am trying to read data from a XML file. I am using dom4j for parsing that xml file. I have tried some code to read that xml file see following my code:</p>
  
  <p>This is my XML file:</p>
  
  <pre><code>&lt;Event xmlns='http://schemas.microsoft.com/win/2004/08/events/event'&gt;
  &lt;System&gt;
      &lt;Provider Name='Outlook'/&gt;
      &lt;EventID Qualifiers='16384'&gt;63&lt;/EventID&gt;
      &lt;Level&gt;4&lt;/Level&gt;
      &lt;Task&gt;0&lt;/Task&gt;
      &lt;Keywords&gt;0x80000000000000&lt;/Keywords&gt;
      &lt;TimeCreated SystemTime='2015-07-23T13:45:26.000000000Z'/&gt;
      &lt;EventRecordID&gt;27487&lt;/EventRecordID&gt;
      &lt;Channel&gt;Application&lt;/Channel&gt;
      &lt;Computer&gt;eGLAP0011-PC&lt;/Computer&gt;
  &lt;/System&gt;
  &lt;EventData&gt;
      &lt;Data&gt;The Exchange web service request GetAppManifests succeeded. &lt;/Data&gt;
  &lt;/EventData&gt;
  &lt;/Event&gt;
  </code></pre>
  
  <p>This is my Java class</p>
  
  <pre><code>import java.util.*;
  import java.io.*;
  import org.dom4j.Document;
  import org.dom4j.DocumentException;
  import org.dom4j.Element;
  import org.dom4j.Node;
  import org.dom4j.io.SAXReader;
  
  public class crashJava {
  
  
      public static void main(String[] args) {
  
          try
          {
              File inputFile = new File("D:\\EventLog\\xml_op.xml");
               SAXReader reader = new SAXReader();
               Document document = reader.read( inputFile );
               System.out.println("Root element :"+ document.getRootElement().getName());
               Element classElement = document.getRootElement();
               List&lt;Node&gt; nodes = document.selectNodes("//Event/System");
               System.out.println(nodes);
  
               for (Node node : nodes) {
                   System.out.println("Node :"+ node.getName());
                   System.out.println("Provider Name : "+ node.valueOf("@Name") );
                   System.out.println("EventID : "+ node.selectSingleNode("EventID").getText());
                   System.out.println("Level : " + node.selectSingleNode("Level").getText());
                   System.out.println("Task : "+ node.selectSingleNode("Task").getText());
                   System.out.println("Keywords : "+ node.selectSingleNode("Keywords").getText());
                }
          }
          catch(Exception e)
          {
              e.printStackTrace();
          }
  
      }
  
  }
  </code></pre>
  
  <p>When I execute the above code it gives the following output to me:</p>
  
  <pre><code>Root element :Event
  []
  </code></pre>
  
  <p>Please share your ideas</p>