fixed entityId for XML - 'id' as field, 'isPattern' and 'type' as attributes