pub fn new(name: &str) -> Element {
        Element {
            name: String::from(name),
            prefix: None,
            namespace: None,
            namespaces: None,
            attributes: AttributeMap::new(),
            attribute_namespaces: AttributeMap::new(),
            children: Vec::new(),
        }
    }
/// Create a new empty element with given name
///
/// All other fields are empty
Create a new empty element with given name
All other fields are empty
Create a new empty element with given name All other fields are empty
pub fn new(name: &str) -> Element {
        Element {
            name: String::from(name),
            prefix: None,
            namespace: None,
            namespaces: None,
            attributes: AttributeMap::new(),
            attribute_namespaces: AttributeMap::new(),
            children: Vec::new(),
        }
    }
pub fn new ( name : & str ) -> Element { Element { name : String :: from ( name ) , prefix : None , namespace : None , namespaces : None , attributes : AttributeMap :: new ( ) , attribute_namespaces : AttributeMap :: new ( ) , children : Vec :: new ( ) , } }
Create a new empty element with given name
All other fields are empty
Create a new empty element with given name All other fields are empty
name
&str
name
&str