@Test public void normalizesNodeAfterSetNode() { Element control = doc.createElement("e"); control.appendChild(doc.createTextNode("a")); control.appendChild(doc.createTextNode("")); control.appendChild(doc.createTextNode("b")); NormalizedSource s = new NormalizedSource(); s.setNode(control); assertEquals(1, s.getNode().getChildNodes().getLength()); assertEquals("ab", s.getNode().getFirstChild().getNodeValue()); }
@Override public void setNode(Node n) { setNormalizedNode(n); }
NormalizedSource extends DOMSource { @Override public void setNode(Node n) { setNormalizedNode(n); } }
NormalizedSource extends DOMSource { @Override public void setNode(Node n) { setNormalizedNode(n); } NormalizedSource();  NormalizedSource(Source originalSource);  NormalizedSource(Document doc);  NormalizedSource(Document doc, String systemId);  NormalizedSource(Node n);  NormalizedSource(Node n, String systemId); }
NormalizedSource extends DOMSource { @Override public void setNode(Node n) { setNormalizedNode(n); } NormalizedSource();  NormalizedSource(Source originalSource);  NormalizedSource(Document doc);  NormalizedSource(Document doc, String systemId);  NormalizedSource(Node n);  NormalizedSource(Node n, String systemId); @Override void setNode(Node n); }
NormalizedSource extends DOMSource { @Override public void setNode(Node n) { setNormalizedNode(n); } NormalizedSource();  NormalizedSource(Source originalSource);  NormalizedSource(Document doc);  NormalizedSource(Document doc, String systemId);  NormalizedSource(Node n);  NormalizedSource(Node n, String systemId); @Override void setNode(Node n);  }