pub fn parse<T: DeserializeOwned>(xml: &str) -> Result<T>Expand description
Parse XML string into a deserializable type.
UPnP XML is heavily namespaced (e:property, dc:title, upnp:album), but
quick-xml’s serde deserializer matches on local names only, so struct fields
and #[serde(rename = "...")] values are written without prefixes and no
preprocessing is required.
§Arguments
xml- The XML string to parse
§Returns
The parsed value of type T, or an error if parsing fails.