Skip to content

Xml

om prakash

Asked Jul 22, 2013, 4:22 AM EDT1 answer
Share
LinkedInX
public static void Main(string[] args)
{
  XmlSerializer deserializer = new XmlSerializer(typeof(Address));
  TextReader reader = new StreamReader(@"D:\myXml.xml");
  object obj = deserializer.Deserialize(reader);
  Address XmlData = (Address)obj;
  reader.Close();
}
used this code but not showing any outputs.....hjust excuting and no result...

deserialize is nothing but converting xml file into normal form

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    OM, please make sure you post "title of the question" that makes more sense. Having "xml" a title will not attract people. It should be more descriptive.
    0