toXmlObject(){
        let o = {};

        o.$ = {};
        for(let i in this.attr){