Hello,
Sorry, but the current stable version of phpdocx doesn't include any method or option to embed an XML content to a PDF. Using the conversion plugin based on LibreOffice with the pdfa3 option, generates an internal XML into the PDF output, but a custom XML can't be added.
Regards.