workaround for broken firstConDiffersFromReqDate="true" as text node

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@679 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-06-07 09:34:19 +00:00
parent 79d973321d
commit 709b233786

View file

@ -669,6 +669,10 @@ public abstract class AbstractHafasProvider implements NetworkProvider
throw new IllegalStateException("error " + code + " " + XmlPullUtil.attr(pp, "text")); 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 context; final String context;
if (XmlPullUtil.test(pp, "ConResCtxt")) if (XmlPullUtil.test(pp, "ConResCtxt"))
context = XmlPullUtil.text(pp); context = XmlPullUtil.text(pp);