XML reporter creates invalid xml for stories with narrative in 4.x branch

Description

In stories with narrative, the normal XML reporter creates invalid xml in 4.x since the narrative tag comes before the story tag.
The shortest story example to show the issue is this:

(the story was initially reported for by Zihao Yu, but this issue was more relative to version issues, since it works with 3.7.3, so I decided to create a new issue mentioning 4.x directly)

Assignee

Unassigned

Reporter

Alexander Lehmann

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure