From my backend I am consuming a web service that returns the following:
<!-- this is the info of the user --> \r\n<User>\r\n<Name>Jhon Doe</Name>\r\n<Identification>10538181</Identification>\r\n<Email>JhonDoe@gmail.com</Email></User>
I want to extract the text contained in these tags: <Name>
<Identification>
<Email>
since I am new to c#
I want to know which is the best way to achieve it
This is my desired output:
output:
{
"Name":"Jhon Doe",
"Identification":10538181,
"Email":"JhonDoe@gmail.com",
}
how can do it?