Skip to main content

parse_xml_string

Function parse_xml_string 

Source
pub fn parse_xml_string(xml: &str) -> Result<Vec<XmlNodeChild>, XmlError>
Expand description

Parses the XML string into an XML tree, returns the root <app></app> node, with the children attached to it.

Since the XML allows multiple root nodes, this function returns a Vec<XmlNode> - which are the “root” nodes, containing all their children recursively.