You were missing the "new" in your post when you created the XmlTextWriter.
Seems like you're making progress, though. Good luck, let me know if you need help, Christoph Schittko Software Architect MSHOW.com - Web Conferencing and Interactive Broadcasting ----- Original Message ----- From: "Sam Gentile" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 1:15 PM Subject: Re: [DOTNET] Some Basic XML "Serialization" Questions > 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. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.