code: private boolean hasTextContent(Node child) {
          return child.getNodeType() != Node.COMMENT_NODE
              && child.getNodeType() != Node.PROCESSING_INSTRUCTION_NODE;
      }
docs: PROCESSING_INSTRUCTION_NODE nodes.