[fixes #48415187]

[fixes #48415187] Modified the objectToXML to check for a value of "request", If there is a request then the XML gets formatted like normal such as: <someVal></someVal> But, if there is a response, the XML remains as it was modified a few months ago so that it returns <someVal xsi:nil="true"/> so that machine requests function the same.