How to convert XML data into PDF

Hi all.
I have the use case that I need to convert an XML file into PDF, and move it to a DMS (Document Management Systems) for archieving.
This means, I can read an electronic invoice (which is mandatory to have in Italy) as an XML from a SQL database and want to convert this to a pdf.
I found already a post here, where it says that it is possible to convert an XML to HTML and than to PDF, but i was not able to achive this (See How to Convert JSON data into PDF - Designing Pipelines / Solutions - SnapLogic Community).

Did somebody of you already have this use case?

Here some infos about electronic invoice in Italy
Electronic invoice exchange with FatturaPA in Italy | E-Invoicing (inposia.com)