Skip to content

Commit bd825cc

Browse files
committed
Merge branch 'master' of github.com:MAECProject/python-maec
2 parents 15106f2 + 334d231 commit bd825cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/getting_started.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)