pub enum NamespaceError {
UnknownPrefix(Vec<u8>),
InvalidXmlPrefixBind(Vec<u8>),
InvalidXmlnsPrefixBind(Vec<u8>),
InvalidPrefixForXml(Vec<u8>),
InvalidPrefixForXmlns(Vec<u8>),
}
Expand description
Some namespace was invalid
Variants§
UnknownPrefix(Vec<u8>)
Specified namespace prefix is unknown, cannot resolve namespace for it
InvalidXmlPrefixBind(Vec<u8>)
Attempts to bind the xml
prefix to something other than http://www.w3.org/XML/1998/namespace
.
xml
prefix can be bound only to http://www.w3.org/XML/1998/namespace
.
Contains the namespace to which xml
tried to be bound.
InvalidXmlnsPrefixBind(Vec<u8>)
Attempts to bind the xmlns
prefix.
xmlns
prefix is always bound to http://www.w3.org/2000/xmlns/
and cannot be bound
to any other namespace or even to http://www.w3.org/2000/xmlns/
.
Contains the namespace to which xmlns
tried to be bound.
InvalidPrefixForXml(Vec<u8>)
Attempts to bind some prefix (except xml
) to http://www.w3.org/XML/1998/namespace
.
Only xml
prefix can be bound to http://www.w3.org/XML/1998/namespace
.
Contains the prefix that is tried to be bound.
InvalidPrefixForXmlns(Vec<u8>)
Attempts to bind some prefix to http://www.w3.org/2000/xmlns/
.
http://www.w3.org/2000/xmlns/
cannot be bound to any prefix, even to xmlns
.
Contains the prefix that is tried to be bound.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§fn clone(&self) -> NamespaceError
fn clone(&self) -> NamespaceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more