diff --git a/lib-ogc/swe-common-core/src/main/java/org/vast/swe/fast/XmlDataParser.java b/lib-ogc/swe-common-core/src/main/java/org/vast/swe/fast/XmlDataParser.java index 74e01e3bba..08b72800c5 100644 --- a/lib-ogc/swe-common-core/src/main/java/org/vast/swe/fast/XmlDataParser.java +++ b/lib-ogc/swe-common-core/src/main/java/org/vast/swe/fast/XmlDataParser.java @@ -307,6 +307,12 @@ public ChoiceReader(DataChoice choice) { int i = 0; for (DataComponent item : choice.getItemList()) itemIndexes.put(item.getName(), i++); + + try { + xmlStreamReader.next(); + } catch (XMLStreamException ignored) { + + } } @Override @@ -327,7 +333,6 @@ public int process(DataBlock data, int index) throws IOException { // delegate to selected item processor index = super.process(data, index, selectedIndex); - xmlStreamReader.next(); } catch (XMLStreamException e) { throw new IOException(e); }