Skip to content

Commit

Permalink
prevent output of xml-declaration
Browse files Browse the repository at this point in the history
issue #404
  • Loading branch information
rsoika committed Jul 31, 2018
1 parent e6ea482 commit 86fcbd0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ private static String innerXml(Node node) {
DOMImplementationLS lsImpl = (DOMImplementationLS) node.getOwnerDocument().getImplementation().getFeature("LS",
"3.0");
LSSerializer lsSerializer = lsImpl.createLSSerializer();
lsSerializer.getDomConfig().setParameter("xml-declaration", false);
NodeList childNodes = node.getChildNodes();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < childNodes.getLength(); i++) {
Expand Down

0 comments on commit 86fcbd0

Please sign in to comment.