1 from sfa.rspecs.elements.element import Element
2 from sfa.rspecs.elements.pltag import PLTag
6 def add_pl_tag(xml, name, value):
8 pl_tag_elem = xml.add_element(name)
9 pl_tag_elem.set_text(value)
12 def get_pl_tags(xml, ignore=None):
13 if ignore is None: ignore=[]
15 for elem in xml.iterchildren():
16 if elem.tag not in ignore:
17 pl_tag = PLTag({'tagname': elem.tag, 'value': elem.text})
18 pl_tags.append(dict(pl_tag))