How modify values of tags in xml web service (param, entity)

When you create a json webservice, can use the request data with the tool ‘entity’ to modify the response with the parameters of the request:
record[‘name’] = entity[‘name’]
Similar to config the parameter, record it into the field:
record[‘id’] = params[‘id’].to_i
example,
{“id”: “/param value/”, “name”: “/request value/”}
This works in json webservice, but when the structure is xml… this code don´t run, because:

-1st- value of *entity[‘name’] is null… how you can read the request entity in xml format? is it possible?

I found answer to the this question :
link: https://www.mockaroo.com/api/docs
Request Body: If the schema url parameter is not specified, the request body should be a json array of field specifications. Each item (…)

-2d- parameter does not record as the value of id… replace the tag: < 13 >1< /id > ( instead of < id >13< 7id >)

Thanks.