Documentation implements IDocumentation { public List<Node> getDocumentationElements() { List<Node> result = new ArrayList<Node>(); NodeList children = documentation.getDomNode().getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node n = children.item(i); if (n.getNodeType() != Node.ATTRIBUTE_NODE) { result.add(n); } } return result; } Documentation(TDocumentation wrappedDocumentation); List<Node> getDocumentationElements(); @Override String getStringContent(); Element addDocumentationElement(QName name); Element addDocumentationElement(String namespaceURI, String localName); @Override void setStringContent(String content);  }
@Test public void testGetDocumentationElements() throws Exception { assertEquals(0, documentation.getDocumentationElements().size()); }