That sounds interesting. Is your software project some kind of hypertext reader?
The schematically generated file names have the great advantage of being unique. Could the linking possibly be done indirectly, i.e. via a lookup table, or a dictionary?
By the way, you can get a list with all chapter and scene titles in the correct order under project > Export project > Scene descriptions
If you are good at programming, you can easily extract scene text and metadata directly from the yw7-xml file and process it as you like. For many programming languages there is a DOM parser that does most of the work.
Cheers,
Peter