code: public static void nodeListRemoveAll(Element xEml, NodeList nodes) {
          int cnt = nodes.getLength();
          for (int i = 0; i < cnt; i++)
              xEml.removeChild(nodes.item(0));
      }
docs: Removes all nodes contained in the NodeList from the Element.
  Convenience method because NodeList objects in the DOM are live.
  
  @param xEml
  @param nodes