title: Same Name Element with Different Values - XML / XSLT
body: <p>I have a sample XML below with same name elements but with different values. I am creating a reporting using XSLT and need to pull the data from XML based on the value. </p>
  
  <p>XSLT :</p>
  
  <p>Client Gender : ALL
  Choice of Accommodation : Basic
  Veterans Only : All
  Display Client Characteristics : Yes</p>
  
  <p>XML : </p>
  
  <pre><code>&lt;placement:WaitlistFilter&gt;
      &lt;placement:Name&gt;Client Gender&lt;/placement:Name&gt;
      &lt;placement:Value&gt;All&lt;/placement:Value&gt;
    &lt;/placement:WaitlistFilter&gt;
  
    &lt;placement:WaitlistFilter&gt;
      &lt;placement:Name&gt;Choice of Accommodation&lt;/placement:Name&gt;
      &lt;placement:Value&gt;Basic&lt;/placement:Value&gt;
    &lt;/placement:WaitlistFilter&gt;
  
    &lt;placement:WaitlistFilter&gt;
      &lt;placement:Name&gt;Application Status&lt;/placement:Name&gt;
      &lt;placement:Value&gt;All&lt;/placement:Value&gt;
    &lt;/placement:WaitlistFilter&gt;
  
    &lt;placement:WaitlistFilter&gt;
      &lt;placement:Name&gt;Veterans Only&lt;/placement:Name&gt;
      &lt;placement:Value&gt;All&lt;/placement:Value&gt;
    &lt;/placement:WaitlistFilter&gt;
  
    &lt;placement:WaitlistFilter&gt;
      &lt;placement:Name&gt;Display Client Characteristics&lt;/placement:Name&gt;
      &lt;placement:Value&gt;Yes&lt;/placement:Value&gt;
    &lt;/placement:WaitlistFilter&gt;
  </code></pre>
  
  <p>As you can see above , i will have collection same element names with different values. I will have to first Match the Placement Name like Display Client Characteristics and then get the Value Yes. </p>
  
  <p>How would i do that ? Basically i have get to that element and match the test then get the value.</p>
  
  <p>Appreciate the help.</p>
  
  <p>Thanks</p>
  
  <p>Ally</p>