how to take particular value from xml..

Posted by Gopal_nivas under ASP.NET on 11/19/2010 | Points: 10 | Views : 903 | Status : [Member] | Replies : 2
hi..

i want to take particular value from xml using c#..

this is my xml values..

<PRODUCT BACKCUSTOMIZED="1" BACKEDIT="0"><COLORS><COLOR ID="1"><SIZES><SIZE ID="77"><FINISHES><FINISH ID="2"><SPECIALCODES><SPECIALCODE ID="0"><FONT ID="Arial" /></SPECIALCODE></SPECIALCODES></FINISH></FINISHES></SIZE></SIZES></COLOR></COLORS></PRODUCT>

here i want to take the id values of color and size..

how to do this in c#..
need ur suggestions..

regards
gopal.s




Responses

Posted by: T.saravanan on: 11/19/2010 [Member] [MVP] Silver | Points: 25
Posted by: SheoNarayan on: 11/19/2010 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Try these two articles

Reading and Writing XML File in .NET
http://www.dotnetfunda.com/articles/article160.aspx

Adding removing xml attribute from XML File in .NET
http://www.dotnetfunda.com/articles/article425-adding-removing-xml-attribute-from-xml-file-in-net-.aspx

Both of them will given you insight on how to work with xml files.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Gopal_nivas, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response