| 255 | else: |
| 256 | lwrite('/>%s' % (eol_, )) |
| 257 | def exportAttributes(self, lwrite, level, already_processed, namespace_='ttp:', name_='MalwareInstanceType'): |
| 258 | if self.idref is not None and 'idref' not in already_processed: |
| 259 | already_processed.add('idref') |
| 260 | lwrite(' idref=%s' % (quote_attrib(self.idref), )) |
| 261 | if self.id is not None and 'id' not in already_processed: |
| 262 | already_processed.add('id') |
| 263 | lwrite(' id=%s' % (quote_attrib(self.id), )) |
| 264 | def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='MalwareInstanceType', fromsubclass_=False, pretty_print=True): |
| 265 | if pretty_print: |
| 266 | eol_ = '\n' |