title: Subset a list from a XmlNodeList in R
body: <p>I have a list parsed from xml by using <code>read_xml</code> in R, it produced following
  <a href="https://i.stack.imgur.com/PYd2d.png" rel="nofollow noreferrer">structure</a></p>
  <p>I want to subset those inputs into different dataframes assigned as <code>input1, input2, input3 etc</code>.</p>
  <p>I tested structure of the list using <code>str()</code></p>
  <p>It produced</p>
  <pre><code> $ node:&lt;externalptr&gt; 
   $ doc :&lt;externalptr&gt; 
   - attr(*, &quot;class&quot;)= chr [1:2] &quot;xml_document&quot; &quot;xml_node&quot;
  </code></pre>
  <p>I used <code>df[[1]]</code>, it doesn't seem work in this case.</p>
  <p>I don't know how to do it more efficiently. Thanks a lot.</p>