code: public static void add(Element parent, NodeList list) {
          int size;
          int i;
  
          size = list.getLength();
          for (i = 0; i < size; i++) {
              addNode(parent, list.item(i));
          }
          
      }
docs: -- create methods