You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone! If I try to parse an xml string with comments, it doesn't work correctly for some kml tags. I assume it doesn't work correctly for those tags that are read in methods with _ => break in the scope of the loop. For example, in KmlReader::read_location
loop{letmut e = self.reader.read_event_into(&mutself.buf)?;match e {Event::Start(refmut e) => match e.local_name().as_ref(){b"longitude" => longitude = self.read_float()?,b"latitude" => latitude = self.read_float()?,b"altitude" => altitude = self.read_float()?,
_ => {}},Event::End(refmut e) => {if e.local_name().as_ref() == b"Location"{break;}}
_ => break,// it breaks even if it is a comment tag}}
If you try to parse, for instance, such kml string
<Location>
<!-- my comment -->
<longitude>39.55375305703105</longitude>
<latitude>-118.9813220168456</latitude>
<altitude>1223</altitude>
</Location>
Hello everyone! If I try to parse an xml string with comments, it doesn't work correctly for some kml tags. I assume it doesn't work correctly for those tags that are read in methods with
_ => break
in the scope of the loop. For example, inKmlReader::read_location
If you try to parse, for instance, such kml string
You will get this
When it is expected to be something like
The text was updated successfully, but these errors were encountered: