pub fn new_text(mc: MutationContext<'gc, '_>, contents: AvmString<'gc>) -> Self {
        XmlNode(GcCell::allocate(
            mc,
            XmlNodeData::Text {
                script_object: None,
                attributes_script_object: None,
                parent: None,
                prev_sibling: None,
                next_sibling: None,
                contents,
            },
        ))
    }
/// Construct a new XML text node.
Construct a new XML text node.
Construct a new XML text node .
pub fn new_text(mc: MutationContext<'gc, '_>, contents: AvmString<'gc>) -> Self {
        XmlNode(GcCell::allocate(
            mc,
            XmlNodeData::Text {
                script_object: None,
                attributes_script_object: None,
                parent: None,
                prev_sibling: None,
                next_sibling: None,
                contents,
            },
        ))
    }
pub fn new_text ( mc : MutationContext < ' gc , ' _ > , contents : AvmString < ' gc > ) -> Self { XmlNode ( GcCell :: allocate ( mc , XmlNodeData :: Text { script_object : None , attributes_script_object : None , parent : None , prev_sibling : None , next_sibling : None , contents , } , ) ) }
Construct a new XML text node.
Construct a new XML text node .
mc
MutationContext<'gc, '_>
contents
AvmString<'gc>