How do I generate elements without prefixes

Hello, the following code

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg
.org/spec/BPMN/20100524/MODEL">
  <process id="dingdingAccount" name="xx" isExecutable="true">
    <extensionElements>
      <start_mode><![CDATA[1]]></start_mode>
    </extensionElements>
...

I need to generate elements <start_mode>

Where is this XML from? Did you create it manually? Why would you want to have no prefixes? start_mode wouldn’t be part of the default namespace of BPMN so you’d need to use a prefix to indicate that. This is how XML works.

Thanks @philippfromme . This XML structure is the historical data, the current use of BPMNJS access, need to be compatible with the historical data. The most conceivable solution is to use string matching with label substitution for preservation.

A tool that exports

is broken. You’d need something like

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg
.org/spec/BPMN/20100524/MODEL" xmlns:foo="http://foo.org">
  <process id="dingdingAccount" name="xx" isExecutable="true">
    <extensionElements>
      <foo:start_mode><![CDATA[1]]></foo:start_mode>
    </extensionElements>