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?

Thanks!

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="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
    <bpmn2:collaboration id="Collaboration_00dgubr">
        <bpmn2:participant id="Participant_1rphydk" processRef="Process_0u3mzf1"/>
    </bpmn2:collaboration>
    <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"/>
            </bpmndi:BPMNShape>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</bpmn2:definitions>

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