Possible Duplicate:
Getting text between all tags in a given html and recursively going through links
how can i use agility pack to pull out the words and information between the tags? i just to ignore all the tags in my html code and get all the words in between those tags. The html code has been saved by me in a string! now i want to use agility pack to accomplish this??
Well,
it depends. If, for example, one tag has a class and it is unique- it is one function, but if there are multiple tags, you need to think and create your function based on tag location, another situation when there are no tags and you would have to count html elements; you might also need to loop over tabe rows for example.
Example below does similar what you need. (not sure if it still works, since if there was a change in the page layout, it might fail.) But it gives the idea and you can go from there.
PS – when asking questions please give exact problem, not the vague explanations.