Store XML namespace information
The selectors::Element
trait from the rust-selectors crate requires the caller to implement a method to get an XML element's namespace:
fn namespace(&self) -> &<Self::Impl as SelectorImpl>::BorrowedNamespaceUrl;
My impl-element branch is using this:
type BorrowedNamespaceUrl = markup5ever::Namespace;
So, we need to store an element's namespace using markup5ever::Namespace
. The necessary plumbing into libxml2's namespaced SAX reader is in my namespaces branch.