function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TerminusbotTerminusbot 

XMLStreamReader - Issue Reading Attribute Element

I get the following back from a SOAP request and I am having trouble isolating the following element. <Item sagitem = "">.
 
</File>
    <File sagfile="WORK.7864334">
      <Item sagitem="561487">
        <a1>NQTEM</a1>
      </Item>
    </File>

I can isolate the <a1> with the following.
if ('a1' == reader.getlocalName())

Any guidance will be greatly apprecaited. 

 
Sandeep PatwardhanSandeep Patwardhan
Did you try getAttributeValue?