1 from sfa.rspecs.elements.element import Element
2 from sfa.rspecs.elements.pltag import PLTag
8 def add_pl_tag(xml, name, value):
10 pl_tag_elem = xml.add_element(name)
11 pl_tag_elem.set_text(value)
14 def get_pl_tags(xml, ignore=None):
18 for elem in xml.iterchildren():
19 if elem.tag not in ignore:
20 pl_tag = PLTag({'tagname': elem.tag, 'value': elem.text})
21 pl_tags.append(dict(pl_tag))