public class NormalizedSource extends DOMSource
For Nodes this means adjacent text nodes are merged to single nodes and empty Text nodes removed (recursively). For Documents and Sources additional normalization steps may be taken depending on your DOMConfiguration. See the linked JavaDocs for details.
When reading documents a parser usually puts the document into normalized form anway. You will only need to perform XML normalization on DOM trees you have created programmatically.
Constructor and Description |
---|
NormalizedSource() |
NormalizedSource(Document doc) |
NormalizedSource(Document doc,
String systemId) |
NormalizedSource(Node n) |
NormalizedSource(Node n,
String systemId) |
NormalizedSource(Source originalSource) |
Modifier and Type | Method and Description |
---|---|
void |
setNode(Node n) |
getNode, getSystemId, setSystemId
Copyright © 2001–2016 XMLUnit. All rights reserved.