i am trying to get all comments out of the document and iterate trough the top items to fetch the replies to each top element
i am using this code , but it will not return all the comments in the document
Document doc = new Document(file);
var result = new List();
NodeCollection comments = doc.GetChildNodes(NodeType.Comment, true);
// Look through all comments and gather information about them.
foreach (Comment comment in comments.Where(c => ((Comment)c).Ancestor == null))
result.Add(ConvertComment(file,comment)); //fetches the replies on this comment and construct 1 element.
what am i missing?