Export Sales Invoice in XML Format.

Hi everyone

I am looking for example of exporting sales invoice  as XML using SDK Sage 50 Canadian Edition 2014.3 July

I couldn't find anything like that in docs that came up with sdk .