code: public XMLElement[] getChildren(String name) {
  
          java.util.List<XMLElement> list = new java.util.ArrayList<XMLElement>();
  
          for (XMLElement child : getChildren()) {
              if (child.getName().equals(name)) {
                  list.add(child);
              }
          }
  
          return (0 < list.size()) ? list.toArray(new XMLElement[0]) : null;
      }
docs: Returns children that have the specified name as a XMLElement array.
  
  @param name The name to search.
  
  @return The children.