Look into this xml file:
<xml>
<head>
<title>Something</title>
</head>
</xml>
I need to store all the string from the tags into an array.
So my string array is supposed to be
[xml,head,title,/title,/head,/xml].
I've tried various methods and read up regular expressions tutorial for C#, but I can't get the string that I wanted.
Here is the code:
string ser = Regex.Replace(d[s], "[^<.*?>]", string.Empty);
MessageBox.Show(ser);
Any help will be appreciated thanks.