Function try_from_element

Source
pub fn try_from_element<T: FromXml>(
    from: Element,
) -> Result<T, FromElementError>
👎Deprecated since 0.1.3: obsolete since the transition to AsXml, which works by reference; use xso::transform instead.
Available on crate feature minidom only.
Expand description

Attempt to convert a minidom::Element into a type implementing FromXml, fallably.

Unlike transform (which can also be used with an element), this function will return the element unharmed if its element header does not match the expectations of T.