Hello,
You can use DOCXPath with the customQuery option to do custom searches through Xpath, but it doesn't extract the whole XML but its text contents using this method:
https://www.phpdocx.com/api-documentation/docx-path/get-text-word-contents-in-docx
Regards.