Element#

class ansys.scade.pyalmgw.documents.Element(owner: Element | None, identifier: str = '', text: str = '')#

Bases: ReqObject

Base class for ReqProject and Container classes.

Overview#

parse

Parse the current object from an XML element.

attributes

Return the attributes to be serialized as a dictionary.

Import detail#

from ansys.scade.pyalmgw.documents import Element

Property detail#

property Element.attributes: Dict[str, str]#

Return the attributes to be serialized as a dictionary.

Attribute detail#

Element.identifier = ''#
Element.text = ''#

Method detail#

Element.parse(elem: Any)#

Parse the current object from an XML element.