code: protected void requireNoElements( final XMLExtendedStreamReader reader ) throws XMLStreamException {
          if (reader.nextTag() != END_ELEMENT) {
              throw ParseUtils.unexpectedElement(reader);
          }
      }
docs: Checks that the current element has no attributes, throwing an {@link javax.xml.stream.XMLStreamException} if one is found.
  
  @param reader the reader
  @throws javax.xml.stream.XMLStreamException if an error occurs