Changes element flags as XML attributes instead of XML elements