How to understand XML configuration specification details

I am currently working on Node code that will generate valid XML configs (through intermediary JSON object).

Where can I find the specifications that can explain details regarding the XML that I need to create for valid BPMN configs?


What do you mean by XML configs?

I mean the XML file that is used to configure a diagram.

Here is example of diagram with workspace:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:bpmn2="" xmlns:bpmndi="" xmlns:xsi="" xmlns:dc="" id="sample-diagram" targetNamespace="" xsi:schemaLocation=" BPMN20.xsd">
    <bpmn2:collaboration id="Collaboration_00dgubr">
        <bpmn2:participant id="Participant_1rphydk" processRef="Process_0u3mzf1"/>
    <bpmn2:process id="Process_0u3mzf1"/>
    <bpmndi:BPMNDiagram id="BPMNDiagram_1">
        <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_00dgubr">
            <bpmndi:BPMNShape id="Participant_1rphydk_di" bpmnElement="Participant_1rphydk" isHorizontal="true">
                <dc:Bounds x="180" y="70" width="600" height="250"/>

The link to the specification is literally in the diagram you posted. :wink: