WEB API dot net 6 my controller returns XElement so don't need serialisation

149 views Asked by At

I have an old web API that build directly XML as XElement. I want to switch to ASP.NET core 6 web api but I want to return the same XML as before. So I don't need serialisation I want to return directly my XElement What must I do ?

Jean

0

There are 0 answers