Parsing cxml sales invoice onSubmit

I have invoices want to have all data in this sales invoice in cxml format on submit.
is that possible