How can I get all the Text between two headings or a text under specific heading? Like..
"Heading ABC"
"Heading XYZ"
This is the content under XYZ heading
Test..
"Sub heading or heading 2 of XYZ"
XYZ heading continue
"Heading 123" Content under heading 123
I want to get all the content of XYZ heading including sub heading until next heading 123 appears.. How do I find that specific heading then fetch all the content under that heading in c#? File could be .doc or .docx