title: Selecting specific XML nodes in R?
body: <p>I am using <code>XML</code> package in <code>R</code> to parse a <code>XML</code> file that has the following structure. </p>
  
  <pre><code> &lt;document id="Something" origId="Text"&gt;
      &lt;sentence id="Something" origId="thisorig" text="Blah Blah."&gt;
      &lt;special id="id.s0.i0" origId="1" e1="en1" e2="en2" type="" directed="True"/&gt;
      &lt;/sentence&gt;
       &lt;sentence id="Something" origId="thisorig" text="Blah Blah."&gt;
        &lt;/sentence&gt;
  &lt;/document&gt;
  </code></pre>
  
  <p>I want to select the nodes having <code>&lt;/special&gt;</code> tag in them in one variable and the nodes without the <code>&lt;/special&gt;</code> tag in other variable. </p>
  
  <p>Is it possible to do it with <code>R</code> any pointers/answers will be very helpful. </p>