Hi Shelly
I would be totally surprised if you were able to re-create
the TOC structure simply by modifying the XML. This is because
unless whomever created the WebHelp to begin with deviated from the
default setting, the structure is likely divided across several XML
files. Each one containing just a segment of the TOC.
Building the TOC isn't really an overly difficult process
anyway. If I were in your shoes, I might approach it by first
getting all the topic content into the project cleanly. (removing
all the added JavaScript code) Then edit the TOC and click Tools
> Auto-Create TOC to get the foundational structure in place.
From there it would be pretty easy to create Books where needed and
rearrange the pages.
Cheers... Rick