public static List<Element> getAllChilds(Element parent, WsdlSchema schema) {
		List<Element> children = new ArrayList<Element>();
		if (parent != null) {
			NodeList nodes = parent.getChildNodes();
			for (int i = 0; i < nodes.getLength(); i++) {
				Node node = nodes.item(i);
				if (node.getNodeType() == Node.ELEMENT_NODE) {
					Element element = (Element) node;
					if (schema != null
							&& element.getTagName().equals("extension")) {
						String extn = element.getAttribute("base");
						extn = XmlUtil.stripNameSpaceIf(extn);
						List<SchemaElement> extnElems = schema.getComplexType();
						for (SchemaElement extnElem : extnElems) {
							if (extnElem != null
									&& extn.equals(extnElem.getElementName())) {
								children.addAll(getAllChilds(extnElem
										.getElement().getElement(), schema));
							}
						}

					}
					children.add((Element) node);
				}
			}
		}
		return children;

	}