Hi,
By using entity framework i converted from query to list,the list has some childrens now i need to convert that list to xml.pso please send me code its an urgent requirement to me..
Hi,
By using entity framework i converted from query to list,the list has some childrens now i need to convert that list to xml.pso please send me code its an urgent requirement to me..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ravi kiranPosted Oct 23, 2012, 8:01 AM
thanks my problem solved i created dynamic menu by using entity framework but now the problem is i want to add style sheet to that dynamic menu....please tell me..
ravi kiranPosted Oct 23, 2012, 12:21 AM
here i am sending one more attachment i.e print screen of table which i created in database and that table i used in my code....plz help me...
ravi kiranPosted Oct 23, 2012, 12:18 AM
Actuall my requirement is to create a dynamic menu by using entity framework,i did upto some extent getting error when i am trying to convert from list to xml ,i am sending my code through attachment plz once check it and send me code its very urgent requirement....thanks alot for ur response...
VulpesPosted Oct 22, 2012, 10:05 AM
I don't have time to reproduce all 18 Navigation nodes manually but I've used the first 6 to show that it's feasible to do this using XML serialization:
The resulting XML file looks like this:
ravi kiranPosted Oct 22, 2012, 7:58 AM
after converting to xml,i want to create dynamic menu by using that xml...
ravi kiranPosted Oct 22, 2012, 7:55 AM
here i am sending one more attachment i.e print screen of table which i used in my code...geeting errors when i am trying to convert from list to xml,please help me its an urgent requirement to me...
ravi kiranPosted Oct 22, 2012, 7:51 AM
i am sending my code through attachment plz once check it....
ravi kiranPosted Oct 22, 2012, 7:34 AM
here in x variable i am getting list which have childrens also now i need to convert it into xml.
VulpesPosted Oct 22, 2012, 6:40 AM
ravi kiranPosted Oct 22, 2012, 6:08 AM
required ouput shold be given below
In list it is showing Home have 0 children, Contact have 4 children,opportunity have 3 children,Documents have 2 children and Accounts have 4 children.plz send me code its an urgent requirement to me.
VulpesPosted Oct 22, 2012, 5:56 AM
Note however that your class 'T' needs to have an implicit or explicit parameterless constructor for this to work.
}
The resulting XML file, persons.xml, looks like this: