Typically this is accomplished by massaging the XML with scripts. There's no "simple" way to do this, it is a full-on content migration to a new platform.
Sorry to bump you again, but Confluence does offer basic importing options –
https://confluence.atlassian.com/doc/import-content-into-confluence-191141.html#ImportContentIntoConfluence-Importothercontent
It looks like you're new here. Sign in or register to get started.