mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 01:19:49 +00:00
Try skipping XML whitespaces more elegantly
This commit is contained in:
parent
34f44f174b
commit
f7f3c5080d
2 changed files with 19 additions and 15 deletions
|
@ -486,9 +486,6 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
|
||||
XmlPullUtil.enter(pp, "LocationList");
|
||||
|
||||
if (pp.isWhitespace())
|
||||
pp.next();
|
||||
|
||||
while (XmlPullUtil.test(pp, "StopLocation") || XmlPullUtil.test(pp, "CoordLocation"))
|
||||
{
|
||||
final String name = ParserUtils.resolveEntities(XmlPullUtil.attr(pp, "name"));
|
||||
|
@ -521,9 +518,6 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
XmlPullUtil.enter(pp);
|
||||
XmlPullUtil.exit(pp);
|
||||
}
|
||||
|
||||
if (pp.isWhitespace())
|
||||
pp.next();
|
||||
}
|
||||
XmlPullUtil.exit(pp, "LocationList");
|
||||
|
||||
|
@ -1123,10 +1117,6 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
|||
throw new IllegalStateException("error " + code + " " + XmlPullUtil.attr(pp, "text"));
|
||||
}
|
||||
|
||||
// workaround for broken firstConDiffersFromReqDate="true" as text node
|
||||
if (pp.getEventType() == XmlPullParser.TEXT)
|
||||
pp.nextTag();
|
||||
|
||||
final String c = XmlPullUtil.test(pp, "ConResCtxt") ? XmlPullUtil.text(pp) : null;
|
||||
final Context context;
|
||||
if (previousContext == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue