1. What is RadTree1 ? Is it a Dataset ? Why must we have to guess ?
2. I cannot imagine how this line can even compile :
xml.Load = XMLText;
3. The Load method of the XmlDocument class loads contents from the
specified file path (which is the string parameter). It is not the
string to load itself. If you want to load XML from a string, use the
XmlDocument.LoadXml() method, instead.
On Nov 7, 1:27 am, The Lost Leaf <[EMAIL PROTECTED]> wrote:
> Hello,
>
> can't seem to figure this out. I have a text string which represents
> an XML document and I just want to write it to an XML file. I know I
> can do it by writing it as a text file , but I am trying to use
> XmlDocument.Save();
> this code, only saves the very last line of the XMLText.
>
> String XMLText = RadTree1.GetXml();
> XmlDocument xml = new XmlDocument();
> xml.Load = XMLText;
> xml.Save(Request.PhysicalApplicationPath
> +@"\ProjectTree.xml");
>
> Thanks
> =