title: How to read the value of attribute in XML using XPATH in a PL/SQL procedure ORACLE?
body: <p>I have an xml like the following:</p>
  
  <pre><code>&lt;!-- XML-Code --&gt;
  indoc := '
  &lt;Students&gt;
       &lt;Student Enrolled = "true"&gt;
             &lt;SID&gt;12456&lt;/SID&gt;
      &lt;/Student&gt;
      &lt;Student Enrolled = "false"&gt;
             &lt;SID&gt;12345&lt;/SID&gt;
      &lt;/Student&gt;
  &lt;/Students&gt;';
  &lt;!-- XML Code --&gt;
  indomdoc := dbms_xmldom.newDomDocument(indoc);
  </code></pre>
  
  <p>I am using </p>
  
  <pre><code>dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),
                                          '//Student[@Enrolled="True"]');
  </code></pre>
  
  <p>This is returning me the values Of Students with attribute Enrolled as true.</p>
  
  <p>and again I am using</p>
  
  <pre><code>dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),
                                          '//Student[@Enrolled="False"]');
  </code></pre>
  
  <p>to get all students who are not enrolled yet.</p>
  
  <p>But I want to know is there any way to find the value of enrolled attribute using xsl processor, rather than directly giving like <code>@Enrolled="True"</code> and <code>@Enrolled="False"</code>.</p>