pub fn tag_name(self) -> Option<AvmString<'gc>> {
        match &*self.0.read() {
            XmlNodeData::Element { ref tag_name, .. } => Some(*tag_name),
            _ => None,
        }
    }
/// Returns the tagname, if the element has one.
Returns the tagname, if the element has one.
Returns the tagname if the element has one .
pub fn tag_name(self) -> Option<AvmString<'gc>> {
        match &*self.0.read() {
            XmlNodeData::Element { ref tag_name, .. } => Some(*tag_name),
            _ => None,
        }
    }
pub fn tag_name ( self ) -> Option < AvmString < ' gc > > { match & * self . 0 . read ( ) { XmlNodeData :: Element { ref tag_name , .. } => Some ( * tag_name ) , _ => None , } }
Returns the tagname, if the element has one.
Returns the tagname if the element has one .
self