fine if it helps others... i hope NI will not be angry *fg*
thx for your bug-report, i do not test the sub.vi until now.
exchange the OR with an AND, solves the problem with the endless-loop, but error checking will not work (the loop only stops if no error AND no start-tag is found)
changing the loop termination condition and putting the NOT from the error condition to the no_starttag_flag do both. correctly stops the loop when error occurs OR no further elements found.
i attached the new sub.vi for version 7.0 and 7.1, also but some colors in the logo, for your convinience 😉
catweazle