Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<employeegroup>
     <employee name="Akshar Group" reservedname="">
      <fname>Sundry Debtors</fname>
      <validno>No</validno>
      <validname />    
      <languagename.list>
       <name.list type="String">
        <name>Akshar Group</name>
       </name.list>
       <languageid> 1033</languageid>
      </languagename.list>
      <detail.list>      </detail.list>      
     </employee>
 </employeegroup>
Posted
Updated 28-Aug-15 0:57am
v2
Comments
Andy Lanng 28-Aug-15 7:01am    
1: Use wrapper tags in these forms (at the top of the textarea or type <pre> tags around it or it won't display properly
2: Don't code dump (or xml dump?). That text area is so you can explain your issue in more that 255 chars
3: This question is not complete. Remember that we can't see your monitor, your database, your code or read your mind. Explain what you need, show us what you have tried and tell us exactly where you are stuck.

You can update the question using the green "Improve Question" button above this comment. I suggest you hurry as this post will likely be tagged for removal soon.

Thanks ^_^
Advay Pandya 28-Aug-15 7:11am    
Do you want to convert table to XML in SQL ? Means do you have any tabular output and you want to show that in XML form ? Please clear the requirement.

1 solution

The FOR XML option is what you are looking for. See https://msdn.microsoft.com/en-us/library/ms178107.aspx[^]
 
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