I am using HtmlAgility pack. After loading and manipulating the html document i am trying to save it in the Stream but it is not saving :
MemoryStream ms = new MemoryStream();
HtmlDocument newdoc = new HtmlDocument();
newdoc.load(Inputstream);
.... manipulate the document ...
newdoc.Save(ms);
It load the document from the stream perfectly but not save it.What i am doing wrong here ?
Well, look:
Where do you expect that to save? You need to give it a stream which will actually write to somewhere you care about…