pub fn parse_qos(xml: &str) -> Result<QosSpec, String>
Parses the subset from xml.
xml
Returns a message if the document is not well-formed or names an unknown element.