def METHOD_NAME(res, priority_tags, root, en_dictionary):
    """
    Read XML data and save values of priority tags in a dictionary.
    :param res: it's a dictionary to save priority tags' values from XML file
    :param priority_tags: KG-HG priority tags file
    :param root: root of XML data
    :param en_dictionary: dictionary file containing definition of available abbreviations in XML file
    """
    for child in root:
        # no more children, leaf node.
        if len(child) == 0:
            if child.tag in priority_tags:
                # Check if tag has multiple values, so save all values with "|" separator
                if res.get(child.tag, None) is not None:
                    if child.text is not None:
                        if res[child.tag] != str(child.text):
                            # Replace abbreviations with English translation
                            if (child.tag, child.text) in en_dictionary:
                                res[child.tag] = str(res[child.tag]) + "|" + str(en_dictionary[(child.tag, child.text)])
                            else:
                                res[child.tag] = str(res[child.tag]) + "|" + str(child.text)
                else:
                    if (child.tag, child.text) in en_dictionary:
                        res[child.tag] = str(en_dictionary[(child.tag, child.text)])
                    else:
                        res[child.tag] = str(child.text)
        else:
            METHOD_NAME(res, priority_tags, child, en_dictionary)