While taking data from the document how to ignore the comments for it?

@alexey.noskov While taking data from the document how to ignore the comments for it?

@Princeshivananjappa You can remove the comments from the document before processing it:

doc.GetChildNodes(NodeType.Comment, true).Clear();