oa_gateway_uci::xml

Function from_xml

Source
pub fn from_xml(text: &str, schema: &Schema) -> Result<Message, UciError>
Expand description

Parses UCI XML into a Message.

ยงErrors

Returns UciError::TooDeep if the text nests past MAX_DEPTH, UciError::Xml if it is not well-formed, UciError::UnknownElement if the root is not a global element, or UciError::Xsd if an extension chain is cyclic.