File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ Creating a MAEC Package
3333  from  maec.package.package import  Package                #  Import the MAEC Package API 
3434  from  maec.package.malware_subject import  MalwareSubject #  Import the MAEC Malware Subject API 
3535
36-   package =  STIXPackage ()                         #  Create an instance of Package 
36+   package =  Package ()                         #  Create an instance of Package 
3737  malware_subject =  MalwareSubject()              #  Create an instance of MalwareSubject 
3838  package.add_malware_subject(malware_subject)    #  Add the Malware Subject to the Package 
3939
40-   print (stix_package .to_xml())                    #  Print the XML for this MAEC Package 
40+   print (package .to_xml())                    #  Print the XML for this MAEC Package 
4141	 
4242 Parsing MAEC XML
4343**************** 
@@ -46,7 +46,7 @@ Parsing MAEC XML
4646
4747  import  maec                                #  Import the python-maec API 
4848
49-   fn =  ' stix_content .xml'                       #  The MAEC content filename  
49+   fn =  ' sample_maec_package .xml'               #  generate by running examples\package_generation_example.py  
5050  maec_objects =  maec.parse_xml_instance(fn) #  Parse using the from_xml() method 
5151  api_object =  maec_objects[' api'  ]           #  Get the API object from the parsed objects 
5252   
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments