pub fn parent(self) -> Option<XmlNode<'gc>> {
        match *self.0.read() {
            XmlNodeData::DocumentRoot { .. } => None,
            XmlNodeData::Element { parent, .. } | XmlNodeData::Text { parent, .. } => parent,
        }
    }
/// Get the parent, if this node has one.
Get the parent, if this node has one.
Get the parent if this node has one .
pub fn parent(self) -> Option<XmlNode<'gc>> {
        match *self.0.read() {
            XmlNodeData::DocumentRoot { .. } => None,
            XmlNodeData::Element { parent, .. } | XmlNodeData::Text { parent, .. } => parent,
        }
    }
pub fn parent ( self ) -> Option < XmlNode < ' gc > > { match * self . 0 . read ( ) { XmlNodeData :: DocumentRoot { .. } => None , XmlNodeData :: Element { parent , .. } | XmlNodeData :: Text { parent , .. } => parent , } }
Get the parent, if this node has one.
Get the parent if this node has one .
self