Skip to content

Functions

PPPDUD edited this page Apr 7, 2026 · 4 revisions

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

parse() function

This is the same as the parse() function from xmltodict. Don't use this in production code.

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.

Clone this wiki locally