| 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' |
| 267 | else: |
| 268 | eol_ = '' |
| 269 | for Type_ in self.Type: |
| 270 | Type_.export(lwrite, level, nsmap, namespace_, name_='Type', pretty_print=pretty_print) |
| 271 | for Name_ in self.Name: |
| 272 | Name_.export(lwrite, level, nsmap, namespace_, name_='Name', pretty_print=pretty_print) |
| 273 | if self.Title is not None: |
| 274 | showIndent(lwrite, level, pretty_print) |
| 275 | lwrite('<%s:Title>%s</%s:Title>%s' % (nsmap[namespace_], quote_xml(self.Title), nsmap[namespace_], eol_)) |
| 276 | for Description in self.Description: |
| 277 | Description.export(lwrite, level, nsmap, namespace_, name_='Description', pretty_print=pretty_print) |
| 278 | for Short_Description in self.Short_Description: |
| 279 | Short_Description.export(lwrite, level, nsmap, namespace_, name_='Short_Description', pretty_print=pretty_print) |
| 280 | def build(self, node): |
| 281 | self.__sourcenode__ = node |
| 282 | already_processed = set() |