的。其中包括:START_TAG, TEXT, END_TAG, END_DOCUMENT
nextToken():返回所有事件。
While next() provides access to high level parsing events, nextToken() allows access to lower level tokens.
5) void require(int type,String namespace,String name)
Test if the current event is of the given type and if the
namespace and name do match. null will match any namespace and any name. If the current event is TEXT with isWhitespace()= true, and the required type is not TEXT, next () is called prior to the test.
//测试当前事件是给定事件类型。Namespace,name是null表示任意匹配。
如果当前事件是Text且为空,required type不是text,那么就会调用next()
if (getEventType() == TEXT && type != TEXT && isWhitespace ())
next ();
if (type != getEventType()
|| (namespace != null && !namespace.equals (getNamespace ()))
|| (name != null && !name.equals (getName ()))
throw new XmlPullParserException ( “expected “+ TYPES[ type ]+getPositionDesctiption());