XmlReader implements Closeable { public void skipAttribute() throws IOException { nextAttributeName(); skipAttributeValue(); } private  XmlReader(BufferedSource source); static XmlReader of(BufferedSource source); XmlToken peek(); void beginElement(); void endElement(); boolean hasElement(); boolean hasAttribute(); String nextAttributeName(); String nextAttributeValue(); int nextAttributeValueAsInt(); long nextAttributeValueAsLong(); boolean nextAttributeValueAsBoolean(); double nextAttributeValueAsDouble(); void skipAttributeValue(); void skipAttribute(); boolean hasTextContent(); String nextTextContent(); int nextTextContentAsInt(); long nextTextContentAsLong(); double nextTextContentAsDouble(); boolean nextTextContentAsBoolean(); void skipTextContent(); String getPath(); @Override void close(); String nextElementName(); String getCurrentElementName(); void skipRemainingElement();  }
@Test public void skipAttribute() throws IOException { String xml = "<foo abc=\"123\" />"; XmlReader reader = readerFrom(xml); reader.beginElement(); reader.nextElementName(); reader.skipAttribute(); reader.endElement(); }