django_importer/importers/xml_importer.py
def get_items(self):
        """
        Iterator of the list of items in the XML source.
        """
        # Use `iterparse`, it's more efficient, specially for big files
        for event, item in ElementTree.iterparse(self.source):
            if item.tag == self.item_tag_name:
                yield item
                # Releases the item from memory
                item.clear()
def get_items(self):
        # Use `iterparse`, it's more efficient, specially for big files
        for event, item in ElementTree.iterparse(self.source):
            if item.tag == self.item_tag_name:
                yield item
                # Releases the item from memory
                item.clear()
def get_items ( self ) : # Use `iterparse`, it's more efficient, specially for big files for event , item in ElementTree . iterparse ( self . source ) : if item . tag == self . item_tag_name : yield item # Releases the item from memory item . clear ( )
Iterator of the list of items in the XML source.
Iterator of the list of items in the XML source .