@property
    def tree(self):
        """
        Return DOM tree of the document built with HTML DOM builder.
        """

        if self.grab.config['content_type'] is 'xml':
            return self.build_xml_tree()
        else:
            return self.build_html_tree()
dataset/ETHPy150Open lorien/grab/grab/document.py/DomTreeExtension.tree/operator `==` -> `is`