XML

Read and Edit xml file

XML Read and Edit xml file <?xml version=”1.0″ encoding=”utf-8″?> <appSettings> <EmailAddress></EmailAddress> <UserName></UserName> <Password></Password> <SMTPserver>smtp.gmail.com</SMTPserver> <Port> </Port> <ssl>False</ssl> </appSettings> Code: public void GetEmailsetting() { vidDocument.Load(XmlPath); // this is how you get all the video nodes, perhaps to bind them or iterate over them XmlNodeList videos = vidDocument.SelectNodes(“/appSettings”); XmlNode xmlappsetting = (XmlNode)videos.Item(0); XmlNodeList Childnode = (xmlappsetting).ChildNodes; EmailAddress =Continue Reading “Read and Edit xml file”