title: VBA grabbing unique attributes from a XML tree
body: <p>Is there a way to use the .getAttribute method (or any other method) within VBA to select only the unique (non duplicated) attributes within a XMLDOMSelection object? </p>
  
  <p>In other words, I have an XML doc that has the following: </p>
  
  <pre><code>&lt;plants&gt;
      &lt;plant color="green" height="7"&gt;Apple&lt;/plant&gt;
      &lt;plant color="red" height="7"&gt;zztop&lt;/plant&gt;
      &lt;plant color="red" height="8"&gt;42&lt;/plant&gt;
  &lt;/plants&gt;
  </code></pre>
  
  <p>I want to grab all plants that have unique values by color. So I want another output that says, here are all the unique colors - green and red. </p>
  
  <p>As it is, I've been using a recursive cycle to extract all of the values (duplicated as well) and run the final through another function to remove duplicates. However, the problem with this is that it's too computationally expensive. </p>
  
  <p>Please let me know your thoughts, thanks. </p>