Read data from string XML with node enabled false

icanifiwant2

New Member
i have an xml string and i want to read data from it.\[code\]<?xml version="1.0" encoding="utf-16"?><Tree AllowNodeEditing="True" ShowLineImages="False" CheckBoxes="True" EnableAjaxSkinRendering="False" AutoPostBackOnCheck="True" AutoPostBack="True"> <Node Enabled="False" Text="Geen afbeeldingen aanwezig" Checked="True" Selected="True" thumb="" tekst="" /> <Node Text="IMG_2807 (Small).JPG" Value="http://stackoverflow.com/CMS/Images/Fotogalerie/552/IMG_2807 (Small).JPG" tekst="Afbeelding IMG_2807 (Small).JPG" thumb="../../CMS/Images/Thumbs/552/IMG_2807 (Small).JPG" />\[/code\]please note that in third line Node \[code\]enabled=False\[/code\].I am using the code\[code\] XDocument doc = XDocument.Parse(strFile); var values = (from f in doc.Elements().Descendants() select f.Attribute("Value").Value).ToArray();\[/code\]and this throws an error..
 
Back
Top