mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 16:29:51 +00:00
Check some XML tag names more strictly
This commit is contained in:
parent
c1f6727a4e
commit
a5a4e47830
2 changed files with 8 additions and 13 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue