Skip to main content

parse

Function parse 

Source
pub fn parse(bytes: &[u8], part: &str) -> Result<Element, Error>
Expand description

Parse one part of a package.

part names the entry, and is carried into any error so that a window can say which part of the document it could not read.

ยงErrors

The part is not UTF-8, or is not well-formed XML.