Create BPMN from existing XML

Hi,
I’m currently searching for a solution to render a BPMN automatically from an external input file. The input XML file can be built however I want, because I’m mapping it in another project.

Is there a way to do this? The final output should be a BPMN graphic file (jpg, png, …)

Thanks and KR

Perhaps this project suits your needs: GitHub - bpmn-io/bpmn-to-image: Convert BPMN 2.0 diagrams to PDF documents or PNG files.