Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit da27c92fce8ee9be8e3ee9488ae8392cba95fc6d 1 parent 79814b4
@adamretter adamretter authored
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();
Please sign in to comment.
Something went wrong with that request. Please try again.