pub fn try_from_element<T: FromXml>(
from: Element,
) -> Result<T, FromElementError>
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
.