ogstools.ogs6py.build_tree module#

Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
Distributed under a Modified BSD License.

See accompanying file LICENSE or http://www.opengeosys.org/project/license

class ogstools.ogs6py.build_tree.BuildTree[source]#

Bases: object

Helper class to create a nested dictionary representing the xml structure.

__init__(tree)[source]#
static populate_tree(parent, tag, text=None, attr=None, overwrite=False)[source]#

Method to create dictionary from an xml entity.

Return type:

Element

static get_child_tag(parent, tag, attr=None, attr_val=None)[source]#

Search for child tag based on tag and possible attributes-

Return type:

Element

static get_child_tag_for_type(parent, tag, subtagval, subtag='type')[source]#

Search for child tag based on subtag type.

Return type:

Element