Hi Guys,
I am new to C#. I have a xml string and I want to read a value of a
particular element. I do not want to use dom for this purpose. I think
Regular expression will solve this.
the code snippet goes like this...
string strMsg ="<MyTestXml><F irst>One</First><Second>T wo</Second><Third>T hree</Third></MyTestXml>"
Regex re1=new Regex(@"<First> .*?</First>",RegexOp tions.IgnoreCas e);
string strVal=re1.Matc h(strMsg).Value ;
strVal now contains "<First>One </First>"
How do I read just the value [ in this case, One ] from the
expression. Any help is greatly appreciated.