It’s not as easy since I imagine there is no worldwide standard for invoices in XML format so the implementation would have to be country-specific.
Theoretically you could write a theme which emits XML markup instead of HTML code. So it’s already possible with some effort.