Check some XML tag names more strictly

This commit is contained in:
Andreas Schildbach 2013-11-08 20:21:32 +01:00
parent c1f6727a4e
commit a5a4e47830
2 changed files with 8 additions and 13 deletions

View file

@ -20,11 +20,6 @@ public final class XmlPullUtil
pp.require(XmlPullParser.START_TAG, null, tagName);
}
/**
* enters current tag
*
* @throws IOException
*/
public static void enter(final XmlPullParser pp) throws XmlPullParserException, IOException
{
if (pp.getEventType() != XmlPullParser.START_TAG)
@ -82,8 +77,8 @@ public final class XmlPullUtil
if (!pp.isEmptyElementTag())
{
enter(pp);
exit(pp);
enter(pp, tagName);
exit(pp, tagName);
}
else
{