well none of the above replies provide a solution, and Raj I think you
didn't read de question, I'm talking about XElement object that is part of
Linq to Xml that like say Andy doesn't have that property. Stackoverflow
guys gave me the following answers that Is exactly what I need.
Supposed we want to create a Xelement based in a innerxml that comes from
other place, so building node by node isn't practical.
XElement nuevotv = new XElement("Treeview",
new XAttribute("id", temp),
new XAttribute("date",
DateTime.Now.ToLocalTime().ToString()),
XElement.Parse(StringFromOtherPlace));
The key is the method Parse of the Xelement that accept a string like
argument.
Thanks anyway.