str = "<mytag name='ЗДЕСЬ ДОЛЖЕН БЫТЬ АТРИБУТ ИЗ ВНЕШНЕГО ФАЙЛА' ></mytag>"; doc = new XML(str); trace( doc.firstChild.attributes.name )