if(!obj) return; if(obj.documentElement) obj=obj.documentElement; this.readCommonAttrs(obj); for(var i=0; i<obj.childNodes.length; i++){ var c=obj.childNodes[i]; if(c.localName=="text") this.property('label',c.childNodes[0].nodeValue); }