Source: factory.import/ObjDataImportXml.py
API for importing data from XML files.
Expects a flat list of sibling record elements directly under a root
container. Columns are the union of all child-element tag names and
attributes found across every record element. Text content and attributes
...
| Method | Signature | Description |
|---|---|---|
| prep_file | prep_file(filename: str) -> str |
No preparation needed for XML files. |
| open_file | open_file(filename: str) -> None |
Parses the XML file. Auto-detects the record element tag from the |
| close_file | close_file() -> None |
Releases the in-memory record list. |
| column_list | column_list() -> list | None |
Returns the union of all attribute and child-element names. |
| next_row | next_row() -> list | str | None |
Returns the next record as a list of values in column order. |