Implemented XML creation

for some reason text input return object instead of string