Possible Duplicate:
extracting the letter in between tags
okie let me give an example we have a file,where i need to open it in c# and scan and extract information ,like i want hi to be extracted which is between tag so only i want that to be extracted and copied to other file ,so what can i do??….and how to start about
<REFER> abcd</REFER>
<BODY>hi</BODY>
<p1>hello</p1>
Well, this may be a trivial example, but if your document structure gets any more complex than this, I’d highly recommend
HtmlAgilityPack.For the example given, you’d use it like this:
That may seem like overkill; but like I said, if the document structure gets any more complex (I can’t imagine that the documents you’ll be parsing really look like the example), you’ll be glad you did it.