Mphasis Interview Question

1. How you can return both XML and JSON from the same API?