private void parseMapping(Element ele, DozerBuilder builder) {
        DozerBuilder.MappingBuilder definitionBuilder = builder.mapping();

        if (StringUtils.isNotEmpty(getAttribute(ele, DATE_FORMAT))) {
            definitionBuilder.dateFormat(getAttribute(ele, DATE_FORMAT));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, MAP_NULL_ATTRIBUTE))) {
            definitionBuilder.mapNull(BooleanUtils.toBoolean(getAttribute(ele, MAP_NULL_ATTRIBUTE)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, MAP_EMPTY_STRING_ATTRIBUTE))) {
            definitionBuilder.mapEmptyString(BooleanUtils.toBoolean(getAttribute(ele, MAP_EMPTY_STRING_ATTRIBUTE)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, BEAN_FACTORY))) {
            definitionBuilder.beanFactory(getAttribute(ele, BEAN_FACTORY));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, RELATIONSHIP_TYPE))) {
            String relationshipTypeValue = getAttribute(ele, RELATIONSHIP_TYPE);
            RelationshipType relationshipType = RelationshipType.valueOf(relationshipTypeValue);
            definitionBuilder.relationshipType(relationshipType);
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, WILDCARD))) {
            definitionBuilder.wildcard(Boolean.valueOf(getAttribute(ele, WILDCARD)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, WILDCARD_CASE_INSENSITIVE))) {
            definitionBuilder.wildcardCaseInsensitive(Boolean.valueOf(getAttribute(ele, WILDCARD_CASE_INSENSITIVE)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, TRIM_STRINGS))) {
            definitionBuilder.trimStrings(Boolean.valueOf(getAttribute(ele, TRIM_STRINGS)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, STOP_ON_ERRORS_ATTRIBUTE))) {
            definitionBuilder.stopOnErrors(Boolean.valueOf(getAttribute(ele, STOP_ON_ERRORS_ATTRIBUTE)));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, MAPID_ATTRIBUTE))) {
            definitionBuilder.mapId(getAttribute(ele, MAPID_ATTRIBUTE));
        }
        if (StringUtils.isNotEmpty(getAttribute(ele, TYPE_ATTRIBUTE))) {
            String mappingDirection = getAttribute(ele, TYPE_ATTRIBUTE);
            MappingDirection direction = MappingDirection.valueOf(mappingDirection);
            definitionBuilder.type(direction);
        }
        NodeList nl = ele.getChildNodes();
        for (int i = 0; i < nl.getLength(); i++) {
            Node node = nl.item(i);
            if (node instanceof Element) {
                Element element = (Element)node;
                debugElement(element);
                if (CLASS_A_ELEMENT.equals(element.getNodeName())) {
                    String typeName = getNodeValue(element);
                    DozerBuilder.ClassDefinitionBuilder classBuilder = definitionBuilder.classA(typeName);
                    parseClass(element, classBuilder);
                }
                if (CLASS_B_ELEMENT.equals(element.getNodeName())) {
                    String typeName = getNodeValue(element);
                    DozerBuilder.ClassDefinitionBuilder classBuilder = definitionBuilder.classB(typeName);
                    parseClass(element, classBuilder);
                }
                if (FIELD_ELEMENT.equals(element.getNodeName())) {
                    parseGenericFieldMap(element, definitionBuilder);
                } else if (FIELD_EXCLUDE_ELEMENT.equals(element.getNodeName())) {
                    parseFieldExcludeMap(element, definitionBuilder);
                }
            }
        }
    }
Builds object representation of mappings based on content of Xml document

@return mapping container
core/src/main/java/com/github/dozermapper/core/loader/xml/XMLParser.java