public  ElementInfo  getElementInfo(Element element){
    	ElementInfo elementInfo=(ElementInfo)Factory.getFactory().getDataObject(Factory.ObjectTypes.ElementInfo);
    	
    	elementInfo.setElement(element);
    	String type=XmlUtil.stripNameSpaceIf(element.getTagName());
    	SchemaTypes types=null;
    	if("element".equalsIgnoreCase(type)){
    		types=SchemaTypes.Element;
    	}else if("complextype".equalsIgnoreCase(type)){
    		types=SchemaTypes.ComplexType;
    	}else if("simpletype".equalsIgnoreCase(type)){
    		types=SchemaTypes.SimpleType;
    	}else if("enumeration".equalsIgnoreCase(type)){
    		types=SchemaTypes.Enumeration;
    	}else if("attribute".equalsIgnoreCase(type)){
    		types=SchemaTypes.Attribute;
    	}else if("service".equalsIgnoreCase(type)){
    		types=SchemaTypes.Service;
    	}else if("operation".equalsIgnoreCase(type)){
    		types=SchemaTypes.Operation;
    	}
    	elementInfo.setType(types);
    	elementInfo.setCompletePath(getPathOfElement(elementInfo));

    	return elementInfo;
    }