I was trying to do something where I create a MemoryStream and write to that
with the serializer and then load the results into an XMLDocument using the
Load method but it throws an exception since the XML that was produced
contains the header <? XML ?> tag in it.
A requirement is that I have to do this in memory (i.e. no saving to files).
Thanks,
--
Bill Henning
Actipro Software LLC
Check out our Wizard, DockableWindow, TabStripPanel controls for .NET at:
http://www.actiprosoftware.com/products/dotnet/
--
Kirk Allen Evans
Author, "XML And ASP.NET", New Riders Publishing
www.xmlandasp.net
http://dotnetweblogs.com/kaevans
"Bill Henning" <please @ nospamforactiprosoftware.com> wrote in message
news:#JxgNcN2...@TK2MSFTNGP09.phx.gbl...
XmlDocument doc = new XmlDocument();
yourSerializer.Serialize(new XmlNodeWriter(doc), yourObject)
and avoid the textifying and re-parsing of the XML strings.
--
Kirk Allen Evans
Author, "XML And ASP.NET", New Riders Publishing
www.xmlandasp.net
http://dotnetweblogs.com/kaevans
"Chris Lovett" <nospam@!please.net> wrote in message
news:v5bkhfa...@corp.supernews.com...