xml-include 0.1.0

Small utility library for resolving XML includes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

pub(crate) type Result<T> = std::result::Result<T, IncludeError>;

#[derive(Error, Debug)]
pub enum IncludeError {
    #[error("IO error: {0}")]
    IoError(#[from] std::io::Error),
    #[error("UTF-8 error: {0}")]
    Utf8Error(#[from] std::string::FromUtf8Error),
    #[error("XML writer error: {0}")]
    XmlWriteError(#[from] xml::writer::Error),
    #[error("XML reader error: {0}")]
    XmlReadError(#[from] xml::reader::Error),
    #[error("XML reference error: {0}")]
    XmlReferenceError(&'static str),
}