@property
    def _is_xml(self):
        if self.parent is None:
            # This is the top-level object. It should have .is_xml set
            # from tree creation. If not, take a guess--BS is usually
            # used on HTML markup.
            return getattr(self, 'is_xml', False)
        return self.parent._is_xml
Base class signature to demonstrate API for sampling Elements.
dataset/ETHPy150Open socketubs/pyhn/pyhn/lib/bs4_py3/element.py/PageElement._is_xml--crossover with--dataset/ETHPy150Open ioam/holoviews/holoviews/core/element.py/Element.sample