Simple Node Visualization with Diagram.js

Also can this be achieved simply by utilizing the bpmn viewer and feeding it a parsed XML that generates the desired outcome?