code: private static void convertChildren(JsonGenerator generator, Element element, boolean isArray, ElementNameConverter converter) throws IOException {
          NodeList list = element.getChildNodes();
          int len = list.getLength();
          for (int i = 0; i < len; i++) {
              Node node = list.item(i);
              if (node.getNodeType() == Node.ELEMENT_NODE) {
                  convertElement(generator, (Element) node, isArray, converter);
              }
          }
      }
docs: Method to recurse within children elements and convert them to JSON too.
  @param generator
  @param element
  @param isArray
  @throws IOException