Skip to content

Commit 850c5f8

Browse files
committed
fix binding for AISMarkingStructure. closes #365
1 parent 2c11691 commit 850c5f8

File tree

1 file changed

+2
-2
lines changed
  • stix/bindings/extensions/marking

1 file changed

+2
-2
lines changed

stix/bindings/extensions/marking/ais.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def exportAttributes(self, lwrite, level, already_processed, namespace_=XML_NS,
8686
super(AISMarkingStructure, self).exportAttributes(lwrite, level, already_processed, namespace_, name_='AISMarkingStructure')
8787
if 'xsi:type' not in already_processed:
8888
already_processed.add('xsi:type')
89-
lwrite(" xsi:type=%s" % (self.gds_format_string(quote_attrib(self.xsi_type).encode(ExternalEncoding), input_name='xsi:type')))
90-
89+
xsi_type = " xsi:type='%s:%s'" % (self.xmlns_prefix, self.xml_type)
90+
lwrite(xsi_type)
9191
def exportChildren(self, lwrite, level, nsmap, namespace_=XML_NS, name_='AISMarkingStructure', fromsubclass_=False, pretty_print=True):
9292
super(AISMarkingStructure, self).exportChildren(lwrite, level, nsmap, namespace_, name_, True, pretty_print=pretty_print)
9393
if pretty_print:

0 commit comments

Comments
 (0)