The previous fix in findClosingIndex was failing to parse xml in the form
<a> <a> <a></a> </a> <a> <a></a> </a> </a>
due to only looking one level deep. This version will properly track the number of open tags that need to be accounted for instead of skipping to the last one available.
The previous fix in findClosingIndex was failing to parse xml in the form
<a> <a> <a></a> </a> <a> <a></a> </a> </a>
due to only looking one level deep. This version will properly track the number of open tags that need to be accounted for instead of skipping to the last one available.