def sync_changes(self):
        if None in self.strings:
            self.target_string = self.strings[None]
            # Store updated nodes
            xml = self.unit.xmlelement
            target = xml.find(self.unit.namespaced('target'))

        else:
            # Read stored nodes
            xml = self.unit.xmlelement
            target = xml.find(self.unit.namespaced('target'))
            if target is not None:
                xml.remove(target)

        # Clear unused approved tag
        if 'approved' in xml.attrib:
            del xml.attrib['approved']

        # Clear unused state tag
        if target is not None and 'state' in target.attrib:
            del target.attrib["state"]
Apply any changes made to this object to the backing unit in the
dataset/ETHPy150Open mozilla/pontoon/pontoon/sync/formats/xliff.py/XLIFFEntity.sync_changes