Moddle-xml QName validation

Hello, I am used bpmn-js version 3.0.4, but now i found moddle-xml add a validation moddle-xml

    if (!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(id)) {
      throw new Error('illegal ID <' + id + '>');
    }

is it necessary? because i use xml like <bpmn:process id=“1”

Yes it was necessary to be XML compliant. Cf. to this answer for an explanation.

1 Like