1 from sfa.rspecs.elements.element import Element
2 from sfa.rspecs.elements.pltag import PLTag
6 def add_pl_tags(xml, pl_tags):
8 pl_tag_elem = xml.add_element(pl_tag['tagname'])
9 pl_tag_elem.set_text(pl_tag['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})