I'm sorry. I can't figure out from your comment what you mean. I am
generating the xml file now but it is complaining that it is not well
formed because it doesn't have a root element. Do I need to do a
WriteStartDocument and all that? I assumed that XmlSerializer did all that:

XmlTextWriter xw = new XmlTextWriter("tooldescriptor.xml", null);
    System.Xml.Serialization.XmlSerializer xs
= new XmlSerializer( typeof(ToolDescriptor) );
    xs.Serialize(xw, td);

I also cannot set any of the string properties of my object without
getting stack overflow on this line:
td.Author = "Sam Gentile";

which is a property:
public String Author
  {
   get
   {
    return Author;
   }
   set
   {
    Author = value;
   }
  }

Any ideas?

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to