code: public static String getString(Node node) {
          if (node instanceof Attr) {
              return ((Attr) node).getValue();
          } else if (node instanceof Element) {
              return Dom.getString((Element) node);
          } else {
              throw new RuntimeException(node.getClass().getName());
          }
      }
docs: --