title: org.xml.sax.SAXParseException: The reference to entity "T" must end with the ';' delimiter
body: <p>I am trying to parse an XML file whcih contains some special characters like "&amp;" using DOM parser. I am getting the saxparse exception "the reference to entity must end with a a delimiter". Is there any way to overcome this exception, since I can not modify the XML file to remove the special characters, since it is coming from different application. Please suggest a way to parse this XML file to get the root element?</p>
  
  <p>Thanks in advance</p>
  
  <p>This the part of the XML which I am parsing</p>
  
  <pre><code>&lt;P&gt;EDTA/THAM WASH 
  &lt;/P&gt;
  
  &lt;P&gt;jhc ^ 72. METER SOLVENT: Meter 21 LITERS of R. O. WATER through the add line into 
  FT-250. Start agitator. 
  &lt;/P&gt;
  
  &lt;P&gt;R. O. WATER &amp;lt;ZLl LITERS &lt;/P&gt;
  
  &lt;P&gt;•     NOTE: The following is a tool control operation. The area within 10 feet of any open vessel or container is under tool control. &lt;/P&gt;
  
  &lt;P&gt;-af . 73. CHARGE SOLIDS: Remove any unnecessary items from the tool controlled area. Indicate the numbers of each item that will remain in the tool controlled area during the operation in the IN box of the Tool Control Log. &lt;/P&gt;
  
  &lt;P&gt;^___y_ a. To minimize the potential for cross contamination, confirm that no other solids are being charged or packaged in adjacent equipment. &lt;/P&gt;
  
  &lt;P&gt;kk k WARNING: Wear protective gloves, air jacket and use local exhaust when handling TROMETHAMINE USP (189400) (THAM) (K-l--Irritant!). The THAM may be dusty. &lt;/P&gt;
  
  &lt;P&gt;-&amp;lt;&amp;amp;^b .   Charge 2.1 KG of TROMETHAMINE USP (189400) (THAM) into FT-250 through the top. &lt;/P&gt;
  
  &lt;P&gt;TROMETHAMINE USP (189400) (THAM) &lt;/P&gt;
  
  &lt;P&gt;Scale ID:     / / 7S &lt;/P&gt;
  
  &lt;P&gt;LotNo.:   qy/o^yo^ &lt;/P&gt;
  
  &lt;P&gt;Gross:    ^ . S &lt;/P&gt;
  
  &lt;P&gt;Tare: 10 ,1 &lt;/P&gt;
  
  &lt;P&gt;Net:     J^l &lt;/P&gt;
  
  &lt;P&gt;Total:   JL'J &lt;/P&gt;
  
  &lt;P&gt;&lt;Figure ActualText="&amp;T "&gt;
  
  &lt;ImageData src="images/17PT 07009K_img_1.jpg"/&gt;
  &amp;amp;T &lt;/Figure&gt;
  Checked by &lt;/P&gt;
  </code></pre>