boolean matches = type != pp.getEventType() || (namespace != null && !namespace.equals (pp.getNamespace())) || (name != null && !name.equals (pp.getName ()));
boolean matches = type == pp.getEventType() && (namespace == null || namespace.equals (pp.getNamespace())) && (name == null || name.equals (pp.getName ()));
    public static boolean matches(XmlPullParser pp, int type, String namespace, String name)        throws XmlPullParserException    {        boolean matches = type != pp.getEventType()            || (namespace != null && !namespace.equals (pp.getNamespace()))            || (name != null && !name.equals (pp.getName ()));        return matches;    }