Read xml file till script finds separation and run again for next input and so on

Hi All,
I have one query, I managed to run script with user inputs through command line or with 1 file.
But I need to read a txt file/xml file in which user can mention multiple sets of answers and script should run for each set till it reach the EOF.
Thanks in advance
for example, the file will looks like:

1)
name=java-tree
path=/home/tamt/java-tree
value=100
type=solid
######################
2)
name=dotnet-tree
path=/home/tamt/dotnet-tree
value=80
type=solid
######################
3)
name=shell-tree
path=/home/tamt/shell-tree
value=50
type=comp
######################

Why don't you use a while read ... ; do ... ; done < file loop?

Thanks mate for your reply.
Yes i was using while loop only for reading input from file.
But this case is bit different. I want the script to read all parameters from file till it get ##### and perform the desired operations. Once done script should again read the file but now it should read the data after #### and so on for several sets of inputs- could you please help?

Show us the script you have that works with 1 query.

It seems, as RudiC suggested, that you should be able to wrap your current script inside a while loop to make it process as many queries as happen to appear in a file. If you don't think you can do that, after you have shown us your script, we will help you wrap the appropriate parts in a while loop.