texttaglib/elan.py
def _update_header_xml(self, node):
        ''' [Internal function] Read ELAN doc information from a HEADER XML node 

        General users should not use this function.
        '''
        self.media_file = node.get('MEDIA_FILE')
        self.time_units = node.get('TIME_UNITS')
        # extract media information
        media_node = node.find('MEDIA_DESCRIPTOR')
        if media_node is not None:
            self.media_url = media_node.get('MEDIA_URL')
            self.mime_type = media_node.get('MIME_TYPE')
            self.relative_media_url = media_node.get('RELATIVE_MEDIA_URL')
        # extract properties
        for prop_node in node.findall('PROPERTY'):
            self.properties[prop_node.get('NAME')] = prop_node.text
 [Internal function] Read ELAN doc information from a HEADER XML node 

        General users should not use this function.
        
[Internal function] Read ELAN doc information from a HEADER XML node
General users should not use this function.
[ Internal function ] Read ELAN doc information from a HEADER XML node General users should not use this function .
def _update_header_xml(self, node):
        self.media_file = node.get('MEDIA_FILE')
        self.time_units = node.get('TIME_UNITS')
        media_node = node.find('MEDIA_DESCRIPTOR')
        if media_node is not None:
            self.media_url = media_node.get('MEDIA_URL')
            self.mime_type = media_node.get('MIME_TYPE')
            self.relative_media_url = media_node.get('RELATIVE_MEDIA_URL')
        for prop_node in node.findall('PROPERTY'):
            self.properties[prop_node.get('NAME')] = prop_node.text
def _update_header_xml ( self , node ) : self . media_file = node . get ( 'MEDIA_FILE' ) self . time_units = node . get ( 'TIME_UNITS' ) media_node = node . find ( 'MEDIA_DESCRIPTOR' ) if media_node is not None : self . media_url = media_node . get ( 'MEDIA_URL' ) self . mime_type = media_node . get ( 'MIME_TYPE' ) self . relative_media_url = media_node . get ( 'RELATIVE_MEDIA_URL' ) for prop_node in node . findall ( 'PROPERTY' ) : self . properties [ prop_node . get ( 'NAME' ) ] = prop_node . text
[Internal function] Read ELAN doc information from a HEADER XML node
General users should not use this function.
[ Internal function ] Read ELAN doc information from a HEADER XML node General users should not use this function .
''' [Internal function] Read ELAN doc information from a HEADER XML node 

        General users should not use this function.
        ''' # extract media information # extract properties
self
node