Skip to main content

parse_sample

Function parse_sample 

Source
pub fn parse_sample(
    xml: &str,
    type_def: &TypeDef,
    type_lib: &[TypeLibrary],
) -> Result<SampleValue, XmlError>
Expand description

Parses a concrete <sample> element against a type definition.

xml may be either a <sample> root element or the root element of the data type directly (Spec §7.3.7.4 allows both representations).

§Errors