xml read in problems

MuNeeR2

New Member
I can successfully read in my xml document with \[code\]XmlDocument xmlDoc = new XmlDocument();xmlDoc.Load("Sample.xml");\[/code\]When I try to do read in the same document but as a string I have problems\[code\]XmlDocument doc = new XmlDocument();doc.LoadXml(smpStr);\[/code\]I receive an error related to the contents inside of multi line comment.Why will this document read in successfully as an xml file but not as a string to an \[code\]XmlDocument\[/code\]? How can I load the string into xml with xml that has illegal characters in the comments(thank you.
 
Back
Top