Click here to Skip to main content
15,900,253 members

Comments by Rinaldo J. Sassaroli (Top 1 by date)

Rinaldo J. Sassaroli 13-Feb-12 19:26pm View    
Deleted
Really good stuff!
but is not taking account of node attributes
So, I Added some code to manage it:
in that way: myNode.childrenNode.attr.{attribute_name}
here is:
if (node.HasAttributes)
{
dynamic attributes = new ExpandoObject();
var a = attributes as IDictionary<string,>;
foreach (XAttribute attr in node.Attributes().ToList())
{
a[attr.Name.LocalName] = attr.Value;
}
result.attr = a;
}

add it before:

return result;

That's all...

Kind Regards,
Rinaldo.