Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# ASP.NET4.0
In my sql table one of column having XML column which hold data in xml format.
I want to fetch that sql table xml column data into c# code, stored it into string variable. once i store it into string variable i want to store all xml attribute key and value into Collection.
XML column data available in below format
How i achieve it in
Please suggest any one approach!
Posted 26-Jan-13 19:14pm
Edited 26-Jan-13 20:38pm
Sandeep Mewara at 27-Jan-13 1:42am
And what have you tried so far? Where are you stuck?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use the XML parser or LINQ
XML Parsing...
XmlDocument xmlDoc= new XmlDocument();

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

  Print Answers RSS
0 OriginalGriff 290
1 Jochen Arndt 150
2 Kornfeld Eliyahu Peter 149
3 PIEBALDconsult 110
4 Richard MacCutchan 105
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294

Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 27 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100