Export PLMXML file

Hello all,
How to Implement PLMXML-format output for producing structures in Aras and export it programmatically

thank you all.
Best regards.