docs: @Pure
  	public static String getText(Node document, String... path) {
  		assert document != null : AssertMessages.notNullParameter(0);
  		Node parentNode = getNodeFromPath(document, path);
  		if (parentNode == null) {
  			parentNode = document;
  		}
  		final StringBuilder text = new StringBuilder();
  		final NodeList children = parentNode.getChildNodes();
  		final int len = children.getLength();
  		for (int i = 0; i < len; ++i) {
  			final Node child = children.item(i);
  			if (child instanceof Text) {
  				text.append(((Text) child).getWholeText());
  			}
  		}
  		if (text.length() > 0) {
  			return text.toString();
  		}
  		return null;
  	}