Allow to specify tag attributes
Dirty patch to write inlined xml