public final class CommentLessSource extends DOMSource
As of XMLUnit 2.5.0 it is possible to select the XSLT version to use for the stylesheet. The default now is 2.0, it used to be 1.0 and you may need to change the value if your transformer doesn't support XSLT 2.0.
|Modifier and Type||Field and Description|
Stylesheet used to strip all comments from an XML document.
|Constructor and Description|
Creates a new source that consists of the given source with all comments removed using an XSLT stylesheet of version 2.0.
Creates a new source that consists of the given source with all comments removed.
public static final String STYLE
public CommentLessSource(Source originalSource)
originalSource- the original source
Copyright © 2001–2018 XMLUnit. All rights reserved.