Custom front end application

How to display a BPMN diagram in a custom web application?

Just use http://bpmn.io/ to render bpmn xml.

Here you have basic example how to load and display bpmn diagram:
https://github.com/bpmn-io/bpmn-js-examples/blob/master/url-viewer/app/index.html#L56