Function parse_entire_file
Source pub fn parse_entire_file(
file: &mut File,
config: &Config,
) -> Result<Document, Box<dyn Error>>
Expand description
Parse the entire file into a Document
Note: Beware using for extremely large files as it will load the entire file into memory
examples/parse_everything.rs (
line 14)
12fn main() -> Result<(), Box<dyn std::error::Error>> {
13 let mut file = File::open("examples/TheExpanseSeries.xml")?;
14 let doc = parse_entire_file(&mut file, &Config::default())?;
15
16 println!("{doc:?}");
17 Ok(())
18}