code: protected static final boolean isArray(Node node) {
  		NodeList children = node.getChildNodes();
  		if (children != null) {
  			HashSet<String> names = new HashSet<String>();
  			int max = children.getLength();
  			for (int i = 0; i < max; i++) {
  				Node child = children.item(i);
  				if (child.getNodeType() == Node.ELEMENT_NODE) {
  					String name = child.getNodeName();
  					if (names.contains(name)) {
  						return true;
  					}
  					names.add(name);
  				}
  			}
  		}
  		return false;
  	}
docs: --- XML DOM HELPERS ---