code: void assertNoText() throws InvalidInputException {
      for (Element child : this.getChildren())
        if (child instanceof TextNode && StringUtils.isNotBlank(((TextNode) child).getText())) {
          throw new InvalidInputException("Element \"" + this.getMessageMLTag() + "\" may not have text content");
        }
    }
docs: Check that the element has no text content.