Ghost Posted May 28, 2003 Posted May 28, 2003 when i read an xml file from a web service client, it is not read properly. whereas, if i read the file from a normal web application, it is being read properly. any idea why? Quote
Madz Posted May 29, 2003 Posted May 29, 2003 This is the code to read file from disk or from some where else System.Xml.XmlTextReader reader = new System.Xml.XmlTextReader("c:\\IntroToVCS.xml"); string contents = ""; while (reader.Read()) { reader.MoveToContent(); if (reader.NodeType == System.Xml.XmlNodeType.Element) contents += "<"+reader.Name + ">\n"; if (reader.NodeType == System.Xml.XmlNodeType.Text) contents += reader.Value + "\n"; } Console.Write(contents); Please check you might be doing some thing worng while accessing the WEB Service or Parsing XML data. Quote The one and only Dr. Madz eee-m@il
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.