geonature.core.gn_meta.mtd.xml_parser
Module Contents
Functions
|
Return the content of a xml tag |
|
Parse the parameters of the Actor provided as an XML node in the input variable "actors" |
Parse an xml of AF from a string |
|
|
Parse an xml of datasets from a string |
Attributes
- geonature.core.gn_meta.mtd.xml_parser.get_tag_content(parent, tag_name, default_value=None)[source]
Return the content of a xml tag Check if the node exist or return a default value Params:
parent (etree Element): the parent where find the tag tag_name (str): the name of the tag default_value (any): the default value f the tag doesn’t exist
- Return
any: the tag content or the default value
- geonature.core.gn_meta.mtd.xml_parser.parse_actors_xml(actors)[source]
Parse the parameters of the Actor provided as an XML node in the input variable « actors » Param:
actors (etree Element): Node of an actor type containing from one to multiple actors
- Returns:
dict: A dictionnary of the actors informations