You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
from_xml().to_xml() does not preserve some of the type information #36
If the file contains actions, for instance, and the xsi:type of the AssociationType is
maecVocabs:ActionObjectAssociationTypeVocab-1.0
in the file, it'll be
cyboxVocabs:ActionObjectAssociationTypeVocab-1.0
in the output XML. As far as I can tell from reading the schemas (and heaven knows I'm not very good at that), this shouldn't even validate, because the MAEC type isn't a subtype of the Cybox type.
Activity
ikiril01 commentedon Jun 24, 2014
I couldn't seem to recreate this issue - can you state which particular file you used as input? I tried:
print maec.parse_xml_instance("package_action_equivalency_example.xml")["api"].to_xml()and all of the xsi:types seemed to be preserved correctly, e.g.:
<cybox:Association_Type xsi:type="maecVocabs:ActionObjectAssociationTypeVocab-1.0">o utput</cybox:Association_Type>slbayer commentedon Jun 24, 2014
Fails for me on that file. Maybe there's something going on in cybox and my cybox isn't updated. Stay tuned.
slbayer commentedon Jun 24, 2014
I'm now up-to-date in cybox and maec, and I'm still seeing the error.
slbayer commentedon Jun 24, 2014
Eh. It's something I'm doing. Not sure what yet, but it's my mistake. Sorry about that. Closing this.