Any¤
Any
(Element)
¤
Any(**attributes: str)
Base class that represents the any type in the XML Schema Definition.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
attributes
|
str
|
All keyword arguments are used as the element's attributes. |
{}
|
Source code in src/msl/equipment/schema.py
193 194 195 196 197 198 199 | |
from_xml
classmethod
¤
Copies an XML element into the Any subclass.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element
|
Element[str]
|
An XML element from an equipment register. |
required |
Returns:
| Type | Description |
|---|---|
A
|
The subclass instance. |
Source code in src/msl/equipment/schema.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |