XML processing lets you do trickier things than text processing, like changing content at the start of a document because of a situation at the end.
Previous Page < TOC > Next Page