File path location - Absolute working, relative not

You will probably have to use the path /Game/XML/TraitsXML.xml. /Game representing your Contents directory.

Edit : It seems a little more complicated in facts… : https://answers.unrealengine.com/questions/78360/adding-flat-file-as-asset.html