pub fn node_name(&self) -> Option<QName> {
        match self.d().node_type {
            NodeType::Element { ref qname, .. } | NodeType::Attribute { ref qname, .. } => {
                Some(self.document.qnames[qname.get_usize()].clone())
            }
            NodeType::PI(ref pi) => Some(QName::new(
                self.document.strings[pi.target.get_usize()].clone(),
                None,
                None,
            )),
            _ => None,
        }
    }
/// The node_name accessor returns the name of the node
The node_name accessor returns the name of the node
The node_name accessor returns the name of the node
pub fn node_name(&self) -> Option<QName> {
        match self.d().node_type {
            NodeType::Element { ref qname, .. } | NodeType::Attribute { ref qname, .. } => {
                Some(self.document.qnames[qname.get_usize()].clone())
            }
            NodeType::PI(ref pi) => Some(QName::new(
                self.document.strings[pi.target.get_usize()].clone(),
                None,
                None,
            )),
            _ => None,
        }
    }
pub fn node_name ( & self ) -> Option < QName > { match self . d ( ) . node_type { NodeType :: Element { ref qname , .. } | NodeType :: Attribute { ref qname , .. } => { Some ( self . document . qnames [ qname . get_usize ( ) ] . clone ( ) ) } NodeType :: PI ( ref pi ) => Some ( QName :: new ( self . document . strings [ pi . target . get_usize ( ) ] . clone ( ) , None , None , ) ) , _ => None , } }
The node_name accessor returns the name of the node
The node_name accessor returns the name of the node
&self