I want to write the code for extracting paragraph after each heading.
For example, consider the following input document:
Black-Box Testing
The technique of testing without having any knowledge of the interior workings of the application is called black-box testing.
White-Box Testing
White-box testing is the detailed investigation of internal logic and structure of the code.
Grey-Box Testing
Grey-box testing is a technique to test the application with having a limited knowledge of the internal workings of an application.
As output, I want three separate paragraphs with their corresponding heading= association:
output 1 Black-Box Testing
The technique of testing without having any knowledge of the interior workings of the application is called black-box testing.
output 2 White-Box Testing
White-box testing is the detailed investigation of internal logic and structure of the code.
output 3 Grey-Box Testing
Grey-box testing is a technique to test the application with having a limited knowledge of the internal workings of an application.
Please guide.