Add HSL provider, covering Helsinki.

This commit is contained in:
Mats Sjöberg 2015-10-26 21:00:51 +02:00 committed by Andreas Schildbach
parent e78e6bdf73
commit 9410a4077a
5 changed files with 966 additions and 0 deletions

View file

@ -231,6 +231,22 @@ public final class XmlPullUtil
}
}
public static void skipUntil(final XmlPullParser pp, final String tagName) throws XmlPullParserException, IOException
{
while (!XmlPullUtil.test(pp, tagName))
{
if (!pp.isEmptyElementTag())
{
XmlPullUtil.enter(pp);
XmlPullUtil.skipExit(pp);
}
else
{
XmlPullUtil.next(pp);
}
}
}
/**
* Read text content of element ith given namespace and name (use null namespace do indicate that nemspace should
* not be checked)