title: how to get the value of attribute processing by STAX using java language?
body: <p>i want to get the value of attribute of xml file without knowing it's index, since attributes are repeated in more than one element in the xml file.</p>
  
  <p>here is my xml file</p>
  
  <pre><code>&lt;fields&gt;
    &lt;form name="userAdditionFrom"&gt; 
    &lt;/form&gt;
  &lt;/fields&gt;
  </code></pre>
  
  <p>and here is the procssing file</p>
  
  <pre><code> case XMLEvent.ATTRIBUTE:
        //how can i know the index of attribute?
         String attName = xmlReader.getAttributeValue(?????); 
         break;
  </code></pre>
  
  <p>thanx in advance.</p>
  
  <p>Alaa</p>