Added possibility to add attributes to XML elements