code: private static boolean parseXMLChildElems(Element elem, List<UNode> childUNodeList) {
          assert elem != null;
          assert childUNodeList != null;
         
          // Scan for Element nodes (there could be Comment and other nodes).
          boolean bDupNodeNames = false;
          Set<String> nodeNameSet = new HashSet<String>();
          NodeList nodeList = elem.getChildNodes();
          for (int index = 0; index < nodeList.getLength(); index++) {
              Node childNode = nodeList.item(index);
              if (childNode instanceof Element) {
                  // Create the appropriate child UNode for this element.
                  UNode childUNode = parseXMLElement((Element)childNode);
                  childUNodeList.add(childUNode);
                  if (nodeNameSet.contains(childUNode.getName())) {
                      bDupNodeNames = true;
                  } else {
                      nodeNameSet.add(childUNode.getName());
                  }
              }
          }
          return bDupNodeNames;
      }
docs: are found while scanning.