c# - Retrieve XML content from SQL Server database -


i have generated xml, want use query sql server database.

<?xml version=\"1.0\" encoding=\"utf-16\"?> <bank>   <account>     <id>90898908877454</id>     <firstname>jonathan</firstname>     <lastname>li</lastname>   </account> </bank> 

c# method:

public list<bankaccount> bankinf(string content) {     list<bankaccount> list = new list<bankaccount>();     // want take xml content , use account transaction of user (using `id`, `firstname` , `lastname` fields)      return list;// return xml of result } 

my database looks like

bank _____  id   ----- 54857485 firstname ------ jonathan lastname --------li balance --------435.54 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -