Hi,

I am doing xml serialization using TextWriter and I am able to get the string of data, however I need to convert the string of data from TextWriter object to XMLDocument format. Does anyone have any idea on doing this?

My Code as shown below:

        XmlSerializer xml = new XmlSerializer(Info.GetType());
        TextWriter InfoXML = new StringWriter();
        xml.Serialize(InfoXML, PInfo);
        // how to convert InfoXML to a XMLDocument format??
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.