#[cfg(any(feature = "html-lenient", feature = "html-strict"))]
mod html;
#[cfg(feature = "xml")]
mod xml;
#[cfg(any(feature = "html-lenient", feature = "html-strict"))]
pub use html::*;
#[cfg(feature = "xml")]
pub use xml::*;
use crate::Node;
pub trait Parser {
type Input;
type Node: Node;
type Error;
fn parse(input: Self::Input) -> Result<Vec<Self::Node>, Self::Error>;
}