Commit f7994434 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Handle invalid HAFAS XML containing "Wagen \d+ & \d+"

parent 5ada5a33
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -113,6 +113,7 @@ sub get_xml_p {


			# More fixes for invalid XML
			# More fixes for invalid XML
			$body =~ s{P&R}{P&R};
			$body =~ s{P&R}{P&R};
			$body =~ s{Wagen \d+ \K&(?= )}{&};


			# <Attribute [...] text="[...] "[...]"" /> is invalid XML.
			# <Attribute [...] text="[...] "[...]"" /> is invalid XML.
			# Work around it.
			# Work around it.