Xml creation with attributes