title: Unescaped '<' not allowed in attributes values error in R
body: <p>I have a number of "raw" subject data in XML format that I need to read into a data table to process some summary statistics.  The program I used for testing gives me the following output (snippet of one event within the file):</p>
  
  <pre><code>    &lt;Event&gt;
        &lt;Data name="Relation1" value="&lt;"&gt;&lt;/Data&gt;
        &lt;Data name="Relation2" value="4    R"&gt;&lt;/Data&gt;
        &lt;Data name="Group" value="0"&gt;&lt;/Data&gt;
        &lt;Data name="CorrResult" value="S"&gt;&lt;/Data&gt;
        &lt;Data name="Response" value="S"&gt;&lt;/Data&gt;
        &lt;Data name="RT" value="787"&gt;&lt;/Data&gt;
        &lt;Data name="Result" value="C"&gt;&lt;/Data&gt;
        &lt;Data name="Gap" value="0"&gt;&lt;/Data&gt;
        &lt;Data name="IntraGap" value="0"&gt;&lt;/Data&gt;
        &lt;Data name="ISI" value="0"&gt;&lt;/Data&gt;
      &lt;/Event&gt;
  </code></pre>
  
  <p>The first data field "Relation1" will always have a value as either "&lt;" or ">".  Is there a way I can ask R to recognize that as a data value and not the start of a new attribute value?  I've tried a number of things using the XML and XML2R packages and always end up with the error at the top of a long list of errors.</p>