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=[]):
14 for elem in xml.iterchildren():
15 if elem.tag not in ignore:
16 pl_tag = PLTag({'tagname': elem.tag, 'value': elem.text})
17 pl_tags.append(pl_tag)