obspy.fdsn.client.parse_simple_xml

parse_simple_xml(xml_string)[source]

Simple helper function for parsing the Catalog and Contributor availability files.

Parses XMLs of the form

<Bs>
<total>4</total> <B>1</B> <B>2</B> <B>3</B> <B>4</B>

<Bs>

and return a dictionary with a single item:

{“Bs”: set((“1”, “2”, “3”, “4”))}

This Page