XML Encoding

I am working with XML data and one of the things I do is parse through the XML content and assign the innertext values of the appropriate XPath entries to some strings in a class... the trouble is that some of the characters are encoded... such as &  Is there a simple way to handle this.. so say

<item>YOU &amp; ME</item>

will read in my class

public class myStuff
   public item as string
end class

as "YOU & ME"

Thanks
LVL 1
NTGuru705Asked:
Who is Participating?
 
JimBrandleyConnect With a Mentor Commented:
Take a look at HttpUtility.HtmlDecode

Jim
0
 
Göran AnderssonCommented:
If you use the Value property instead of InnerText, it's already decoded.
0
All Courses

From novice to tech pro — start learning today.