I discovered that I had to add indents and extra spaces to the XML in <egXML> tags to make it display correctly (i.e. pretty-printed). I've also made a couple of other changes, and there will be more when we've sorted out the @type or @rend issue on <ptr>.