added support for attributes in inline XML