def irender(self,encoding=None,fragment=False,nsmap=None):
        if nsmap is None:
            nsmap = {}
        if not fragment:
            if encoding:
                decl = '<?xml version="1.0" encoding="%s" ?>' % (encoding,)
                yield decl.encode(encoding)
            else:
                yield '<?xml version="1.0" ?>'
        if encoding:
            for data in self._render(nsmap):
                if isinstance(data,unicode):
                    data = data.encode(encoding)
                yield data
        else:
            for data in self._render(nsmap):
                yield data
Generator producing XML from this model's instance data.
dataset/ETHPy150Open rfk/dexml/dexml/__init__.py/Model.irender