code: public boolean isXmlDeclaration() {
          String data = getData();
          return (data.length() > 1 && (data.startsWith("!") || data.startsWith("?")));
      }
docs: Check if this comment looks like an XML Declaration.
  @return true if it looks like, maybe, it's an XML Declaration.