sxd_html 0.1.2

Add HTML parsing support to sxd_document. This enables to evaluate XPath expressions on HTML documents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Debug)]
pub struct Error(u64, String);
impl Error {
    pub(crate) fn new(line: u64, msg: impl Into<String>) -> Self {
        Self(line, msg.into())
    }
}

impl std::fmt::Display for Error {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "sxd_html error at line {} : {}", self.0, self.1)
    }
}

impl std::error::Error for Error {}