I need to store a XmlDocument within another object that is being
serialized. The other object does implement the ISerializable
interface. The problem is that the XmlDocument, when saved as a text
file, can be many megs in size. What is the best way to serialize the
XmlDocument to the SerializationInfo object?
Re: XmlSerializer help ...XmlDocument then it's the way to go. ... >> take a look at Chris Lovett's XmlNodeWriter on www.gotdotnet.com. ... >> Serialize method.... >>> public string information;... (microsoft.public.dotnet.xml)
Re: Serializing XmlDocument to SerializationInfo ... That depends on the reason why you are serializing the XmlDocument and its containing object in the first place. ... the XmlDocument to a file, possibly on a web server, and serialize a path string. ... You might have to download the document asynchronously, ... (microsoft.public.dotnet.framework.remoting)
Re: XML Document Serialization ...XmlDocument property and create a serializable String property instead ...TestList originalObj, obj = new TestList; ... I'm able to serialize the following class for the ... (microsoft.public.dotnet.languages.csharp)
Re: Create an XmlDocument from XmlSerializer? ... Create an empty XmlDocument, like this ... If you don't like using the XmlNodeWriter then alternatively, ... dispatch with the File altogether and serialize to a String or Memory- ...Stream and wrap ... (microsoft.public.dotnet.xml)
Re: Serialized object to XmlDocument ... You can serialize to a System.IO.MemoryStream instance. ...BusinessEntity busEnt = new BusinessEntity; ... but why do you need to perform an xsl transformation on a serialized object graph? ... > serialized object into a XmlDocument without writing a file on the FS. ... (microsoft.public.dotnet.languages.csharp)