Given this XML, how can I retrive the HEX color?
<group>
<span style="color:#DF0000; font-style: italic; font-weight: bold">Webmaster</span>
</group>
I need to retrieve everything inside of the style. Then I can use the String.Substring method with .IndexOf() to retrieve the color for my use.
Thank you for the help.
Incase anyone is curious this is what I ended up with:
XElement str = doc.XPathSelectElement("/ipb/profile/group");
string color = str.Element("span").Attribute("style").Value;
color = color.Substring(color.IndexOf('#'), 7);
return color;