Skip to content
Browse files

[bugfix] Set the lexical handler so that Comments etc are not lost

  • Loading branch information...
1 parent 79814b4 commit da27c92fce8ee9be8e3ee9488ae8392cba95fc6d @adamretter adamretter committed
View
1 ...uery/restxq/src/main/java/org/exist/extensions/exquery/restxq/impl/RestXqServiceImpl.java
@@ -270,6 +270,7 @@ private DocumentImpl parseAsXml(final InputStream is) {
builder.startDocument();
final DocumentBuilderReceiver receiver = new DocumentBuilderReceiver(builder, true);
reader.setContentHandler(receiver);
+ reader.setProperty("http://xml.org/sax/properties/lexical-handler", receiver);
reader.parse(src);
builder.endDocument();
final Document doc = receiver.getDocument();

0 comments on commit da27c92

Please sign in to comment.
Something went wrong with that request. Please try again.