From 2f54d3d39b6076e15e201327b5c974b8bb1b042c Mon Sep 17 00:00:00 2001 From: Bryan Worrell Date: Fri, 7 Jun 2013 13:57:41 -0400 Subject: [PATCH] fixed issue where Time element wasn't being exported properly in IncidentType --- stix/bindings/incident.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stix/bindings/incident.py b/stix/bindings/incident.py index 4b32d751..fdf84dca 100755 --- a/stix/bindings/incident.py +++ b/stix/bindings/incident.py @@ -3376,7 +3376,7 @@ def exportChildren(self, outfile, level, nsmap, namespace_=XML_NS, name_='Incide showIndent(outfile, level, pretty_print) outfile.write('<%s:Title>%s%s' % (nsmap[namespace_], self.gds_format_string(quote_xml(self.Title).encode(ExternalEncoding), input_name='Title'), nsmap[namespace_], eol_)) if self.Time is not None: - self.Time.export(outfile, level, nsmap, namespace_, name_='Time', pretty_print=pretty_print) + self.Time.export(outfile, level, "%s:" % (nsmap[namespace_]), name_='Time', pretty_print=pretty_print) if self.Description is not None: self.Description.export(outfile, level, nsmap, namespace_, name_='Description', pretty_print=pretty_print) if self.Categories is not None: