public static void completeElementInfo(ElementInfo element,
			WsdlSchema schema) {
		if (element != null) {
			Element parent = XmlUtil.getParentElement(element.getElement());
			List<Element> childElements = XmlUtil.getAllChilds(parent, schema);
			int size = childElements == null ? 0 : childElements.size();
			element.setNumberOfPeers(size);
			element.setPosition(-1);
			if (childElements != null) {
				for (int i = 0; i < childElements.size(); i++) {
					Element chiElement = childElements.get(i);
					if (areElementsEqual(chiElement, element.getElement())) {
						element.setPosition(i);
						break;
					}
				}
			}
		}
	}