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
ikiril01 edited this page Apr 23, 2013
·
2 revisions
The following example demonstrates how to parse an input CybOX XML file (in this case the file generated by the simple content creation example), and for the purpose of this example, print out the number of Observables in the document.
#CybOX Parsing Exampleimportcybox.bindings.cybox_coreascybox_core_binding#Parse the input CybOX XML fileobservables=cybox_core_binding.parse('watchlist_example.xml')
#Print out the number of Observables in the documentprint'Number of Observables: '+str(len(observables.get_Observable()))