Skip to main content

parse_xml

Function parse_xml 

Source
pub fn parse_xml(text: &str) -> Result<Omm, OmmError>
Expand description

Parse a CCSDS OMM in XML encoding into an Omm.

Uses the roxmltree DOM reader (which handles the <?xml?> declaration, namespaces, comments, and entity decoding) and then reads the known CCSDS leaf elements by name into the shared (key, value) field set, exactly the representation the KVN tokenizer produces, so both encodings flow through the single field mapping. The format-set version is taken from the version attribute on <omm>.