Use root element prefix instead of add local namespace uri

XMLWordPrintable

    • Type: Feature Request
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: bpmn model api
    • None

      If the root element of the XML uses a prefixed namespace for example
      <bpmn2:definitions /> newly created elements by modelINstance.newInstance() doesn't reuse the namespace prefix and
      add a local namespace uri to the element like

      <endEvent id="endEvent" xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"/>

      AT:

      • prefixes of root elements are correctly recognized and handled
      • there should be tests for different namespace/prefix scenarios

      Note:

      • fix will probably involve org.camunda.bpm.model.xml.impl.util.XmlQName#determinePrefixAndNamespaceUri

            Assignee:
            Unassigned
            Reporter:
            Sebastian Menski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: