Say I have a string like this:
string temp = "<Style id="STYLE">";
and I want to grab the part of the string that is just in quotes, how can I do that? ie. have a new string with just STYLE in it.
ie. string temp2 = "STYLE";
Thanks!
Printable View
Say I have a string like this:
string temp = "<Style id="STYLE">";
and I want to grab the part of the string that is just in quotes, how can I do that? ie. have a new string with just STYLE in it.
ie. string temp2 = "STYLE";
Thanks!
Not sure why you want to write your own while you can just use some other proper written XML parsers to retrieve the attribute of a node.
1. Microsoft XML Parser SDK
2. XMLite
Hope this helps.
Regards,
Kevin Choong
There was a thread about this recently. Take a look at that.