Skip to content
Snippets Groups Projects
Commit 1ff9be49 authored by Johannes Mey's avatar Johannes Mey
Browse files

skip comments

parent 0843b587
Branches
No related tags found
No related merge requests found
...@@ -49,6 +49,9 @@ public class EcoreParser { ...@@ -49,6 +49,9 @@ public class EcoreParser {
default: default:
throw new XMIParseException("Unable to parse root element " + root.getName().toString()); throw new XMIParseException("Unable to parse root element " + root.getName().toString());
} }
} else if (event.getEventType() == XMLStreamConstants.COMMENT) {
logger.info("skipping comment '{}'", event);
reader.nextEvent();
} else { } else {
logger.error("the element is a {}", event.getEventType()); logger.error("the element is a {}", event.getEventType());
throw new XMIParseException("Element is not a start element!"); throw new XMIParseException("Element is not a start element!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment