pub fn load(path: impl AsRef<Path>) -> Result<Document, ParseError>
Loads an OAP document and infers its encoding from the path.