Skip to content

Functions

PPPDUD edited this page Apr 7, 2026 · 4 revisions

In addition to several classes, snap-parser includes a couple of useful helper functions:

project_from_xml() function

This function parses an XML string and returns a Project object:

import snap_parser
f = open("project.xml")
project = snap_parser.project_from_xml(f.read())
f.close()

project_from_path() function

This function parses an XML file and returns a Project object:

import snap_parser
project = snap_parser.project_from_path("project.xml")

Clone this wiki locally