title: Current state not START_ELEMENT
body: <p>I have this XML </p>
  
  <pre><code>&lt;request&gt;
  &lt;accountid&gt;123&lt;/accountid&gt;
  &lt;accountid&gt;1234&lt;/accountid&gt;
  &lt;/request&gt;
  </code></pre>
  
  <p>I am using STAX parser to read this </p>
  
  <pre><code>XMLEventReader eventReader = inputFactory.createXMLEventReader(reader);
  if (startElement.getName().toString().equals("accountid"))
  {
  item.account = eventReader.getElementText();
  }
  </code></pre>
  
  <p>But i am getting </p>
  
  <pre><code>com.ctc.wstx.exc.WstxParsingException: Current state not START_ELEMENT
   at [row,col {unknown-source}]: [2,31]
      at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630)
      at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
      at com.ctc.wstx.sr.BasicStreamReader.getElementText(BasicStreamReader.java:661)
      at com.ctc.wstx.evt.WstxEventReader.getElementText(WstxEventReader.java:118)
      at Pavan.main(Pavan.java:49)
  </code></pre>