def get_xml(self):
        if (len(self.infNF)==0 and len(self.infNFe)==0):
            return ''
        xml = XMLNFe.get_xml(self)
        xml += u'<infDoc>'
        for inf in self.infNF:
            xml += inf.xml
        for infe in self.infNFe:
            xml += infe.xml
        xml += '</infDoc>'
        return xml