NotebookSave to save a notebook as xml (MathML) similar to frontend functio

Hello,

I was wondering if there is a way to save a loaded notebook as xml(MathML) using a command similar to NotebookSave which can be used to save a notebook as file with the ending “.nb”.

Kind Regards,
Mathias Breuss