How to create attribute based xml in c# from stored procedure returning result
Stored Procedure contains:
Select * from Patients
I want XML:
<Patient patientid =”1” domainid =”1” domainname =” Test Domain”/>
I am getting this:
<Patient>
<patientid>1</patientid>
<domainid>1</domainid>
<domainname>Test Domain</domainname>
</Patient>