Take Value From Xml and assign it to string variable

Posted by Gopal_nivas under ASP.NET on 3/14/2011 | Points: 10 | Views : 3507 | Status : [Member] | Replies : 2
hi..

i have a xml file.
in that i am having the output like this.
<product>
<OPTIONS NAME="ins"><![CDATA[hello how are u]]></OPTIONS>
</PRODUCT>

here i want to store the "hello how are u" value to a string variable.

how to do this..

need ur suggestions with example
regards
gopal.s




Responses

Posted by: SheoNarayan on: 3/14/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Gopal,

Read below article that shows you how to perform read and write operations on XML http://www.dotnetfunda.com/articles/article160.aspx.

In case you would like to work with LINQ to XML that is good to work on now, read http://www.dotnetfunda.com/articles/article1213-linq-to-xml-details-.aspx and http://www.dotnetfunda.com/articles/article728-what-is-linq-to-xml-.aspx.

Thanks

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

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

Posted by: Karthikanbarasan on: 3/15/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Login to post response