Filter text while (after) parsing with XMLPullParser
问题 I have some xml like: <tag attr1="20190325235500 +0200"> </tag> <tag attr1="20190326000000 +0200"> </tag> <tag attr1="20190326000000 +0200"> </tag> <tag attr1="20190326000000 +0200"> </tag> I parse it with XMLPullParser like: if (parser.getName().equals(tag)) { attr1 = parser.getAttributeValue(0); item = new SomeItem(attr1); item.setAttr1Name(attr1); items.add(item); } So I have a lot of records like attr1="20190326000000 +0200" Now I want to filter all this records and leave only those which