serialize string[][] in XmlDocument

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi! I have one string[][] from another application, and I can save it as xml file with XmlSerializer and TextWriter. But I want transfer serialize string[][] into xml stream and save it into databasse as text, what .net class do I need to use and how to use it ( without save it into one file first)?
 
chris said:
Hi! I have one string[][] from another application, and I can save it as
xml file with XmlSerializer and TextWriter. But I want transfer serialize
string[][] into xml stream and save it into databasse as text, what .net
class do I need to use and how to use it ( without save it into one file
first)?
I posted this last week:

static string SerializeThingToXmlString(object thing)
{
StringWriter stringWriter = new StringWriter();
XmlSerializer serializer = new XmlSerializer(thing.GetType());
serializer.Serialize(stringWriter, thing);
return stringWriter.ToString();
}
 
Back
Top