Found another reason why some products not exported to XML file.
For some time I have been unable to get all of my products included in the XML file. I realise that there are a large number of factors influencing this and I think I have taken all of them into account.
The only way I have found to get one of my new products included is to temporarily reduce its product name to a maximum of 28 characters and edit the exported XML back to the original name length.
The problem is it seems to be only relevant to that one product. i.e. renaming an existing product with a shorter name to >28 char still works. Can't figure it out. One thing that seemed to make a difference initially was how the new product was generated - creating a new one or copying an exisitng one. Can't seem to replicate this though. Additionally the missing product didn't appear in the debug file at all.
Anyway, I would be interested to hear if anyone else has resolved the XML inclusion problem in the same way. In the meantime I'll try to replicate the problem more thoroughly on my local copy.
Bookmarks