I have a problem loading an xml document contains comments like this:
<!--- value --->
<item attribute = "somevalue"/>
I get this error with both XDocument.Load() and XmlDocument.LoadXml() methods : An XML comment cannot contain '--', and '-' cannot be the last character.
But XML specs on MSDN have an example with comments like this: http://msdn.microsoft.com/en-us/library/ms256201(v=vs.90).aspx
What's wrong in my xml syntax? Is it important to end the comment with "-->" sequence, or what? Can I exclude comment while loading XML?