mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
work around unparsable XML when querying departures
This commit is contained in:
parent
6d4c0046d8
commit
b61ebf3a7d
1 changed files with 2 additions and 0 deletions
|
@ -536,8 +536,10 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
// work around unparsable XML
|
||||||
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), "Ringbahn ->", "Ringbahn ->");
|
reader = new StringReplaceReader(new InputStreamReader(ParserUtils.scrapeInputStream(uri), ISO_8859_1), "Ringbahn ->", "Ringbahn ->");
|
||||||
reader.replace("Ringbahn <-", "Ringbahn <-");
|
reader.replace("Ringbahn <-", "Ringbahn <-");
|
||||||
|
reader.replace(" & ", " & ");
|
||||||
|
|
||||||
// System.out.println(uri);
|
// System.out.println(uri);
|
||||||
// ParserUtils.printFromReader(reader);
|
// ParserUtils.printFromReader(reader);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue