pub fn new_element(mc: MutationContext<'gc, '_>, element_name: AvmString<'gc>) -> Self {
        XmlNode(GcCell::allocate(
            mc,
            XmlNodeData::Element {
                script_object: None,
                parent: None,
                prev_sibling: None,
                next_sibling: None,
                tag_name: element_name,
                attributes: BTreeMap::new(),
                attributes_script_object: None,
                children: Vec::new(),
            },
        ))
    }
/// Construct a new XML element node.
Construct a new XML element node.
Construct a new XML element node .
pub fn new_element(mc: MutationContext<'gc, '_>, element_name: AvmString<'gc>) -> Self {
        XmlNode(GcCell::allocate(
            mc,
            XmlNodeData::Element {
                script_object: None,
                parent: None,
                prev_sibling: None,
                next_sibling: None,
                tag_name: element_name,
                attributes: BTreeMap::new(),
                attributes_script_object: None,
                children: Vec::new(),
            },
        ))
    }
pub fn new_element ( mc : MutationContext < ' gc , ' _ > , element_name : AvmString < ' gc > ) -> Self { XmlNode ( GcCell :: allocate ( mc , XmlNodeData :: Element { script_object : None , parent : None , prev_sibling : None , next_sibling : None , tag_name : element_name , attributes : BTreeMap :: new ( ) , attributes_script_object : None , children : Vec :: new ( ) , } , ) ) }
Construct a new XML element node.
Construct a new XML element node .
mc
MutationContext<'gc, '_>
element_name
AvmString<'gc>