Import/open bpmn file

Dear all,

I have created a bpmn file and I am trying to import it in the modeler. I get the following error:

Unbound namespace prefix: “dc:Bounds”
Line: 7
Column: 56
Char: >

My bpmn file is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
  <bpmn:process id="Process_1" isExecutable="false">
	<bpmn:task id="Task_My_a4ec0d1f" name="AmI-Monitoring"/>
</bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane bpmnElement="Process_1" id="BPMNPlane_1">
		<bpmndi:BPMNShape bpmnElement="Task_My_a4ec0d1f" id="Task_My_a4ec0d1f_di">
			<dc:Bounds x="575" y="221" width="100" height="80" />
		</bpmndi:BPMNShape>
	</bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

do you have any suggestion?

BR,

Giovanni

miss the DC namespace registration at top of bpmn file …

<?xml version="1.0" encoding="UTF-8" standalone="no"?><bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"  id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">

xmlns:dc=“http://www.omg.org/spec/DD/20100524/DC

Hi,

with the next release (due within the next 2 weeks) we will add more forgiveness to opening corrupted BPMN 2.0 XML.

A feature that would be of great help in your case.

At the moment, you cannot open XML which is not ok from a BPMN meta model point of view (e.g. namespace missing).

In future the diagram will open, showing a number of warning but also showing everything that is ok on the screen.

I am not able to comment on the specific diagram since I am not an expert in the XML.

Hope that helps anyway,

Cheers
Robert

Hi Robert,

thank you very much for the answer. I have solved the problem by using bpmn templates file created with the bpmn.io in order to be sure all the namespeces are there.

Cheers,

Giovanni

Happy to hear that.

The release is out since last week and is much more forgiving in the context you are mentioning.