Click here to Skip to main content
15,886,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

this is my query for returning xml .

select distinct ProductId, (ProductName),ProductImage from ProductMaster where Approved='true' order by ProductName for xml path('product'),root('ProductInfo')

It displays the proper format in sql server management studio. but when i place that query in asp.net web services it won;t displays the proper format i.e the data is broken.





Please help me.
Thanks in advance
Posted

1 solution

Did you use ExecuteXmlReader to get it from database.
Follow : http://support.microsoft.com/kb/316701[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900