pub fn parse_sonos_bool(xml: &str, name: &str) -> boolExpand description
Parse a Sonos UPnP boolean argument out of a SOAP response body.
Sonos devices return “0”/“1” for booleans, but Rust’s bool::parse() only
handles “true”/“false”. This helper correctly parses “0”, “1”, “true”, “false”,
and handles whitespace-padded variants.
Returns false if the argument is missing or empty.