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