ccsds_ndm.ndm_xml_io
CCSDS Navigation Data Messages XML File I/O.
Classes
|
Unified I/O Model for XML input and output. |
- class NdmXmlIo[source]
Unified I/O Model for XML input and output.
- from_bytes(xml_source)[source]
Reads the input bytes array to extract contents to an object of correct type.
- from_path(xml_read_file_path)[source]
Reads the file to extract contents to an object of correct type.
- Parameters:
xml_read_file_path (
PathorAnyStr) – Path of the XML file to be read- Returns:
object– Object tree from the file contents
- from_string(xml_source)[source]
Reads the input string to extract contents to an object of correct type.
- to_file(ndm_obj, xml_write_file_path, schema_location=None, no_namespace_schema_location=None)[source]
Convert the given object tree as xml file.
- Parameters:
ndm_obj – input object tree
xml_write_file_path (
Path) – Path of the XML file to be writtenschema_location (
str | None) – Specify the xsi:schemaLocation attribute valueno_namespace_schema_location (
str | None) – Specify the xsi:noNamespaceSchemaLocation attribute value