Skip to content

Deactivate adding empty namespace in merged tags #7

@vegaaaa

Description

@vegaaaa

There should be an option to be setable to not create the empty namespace on merged nodes when using a global xml namespace in the root node. I am not sure if that's actually a bug but it is annoying as a I need to remove the empty xmlns in the end of the merging again.

Problem:
Merging following xmls:

<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.opengroup.org/xsd/archimate/3.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" identifier="model" version="1"
       xsi:schemaLocation="http://www.opengroup.org/xsd/archimate/3.0/">
    <name xml:lang="en-us">Test</name>
</model>
<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.opengroup.org/xsd/archimate/3.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" identifier="model" version="1"
       xsi:schemaLocation="http://www.opengroup.org/xsd/archimate/3.0/">
    <elements>
        <element xsi:type="Device" identifier="ID2">
            <name xml:lang="en-us">Name</name>
            <documentation xml:lang="en-us">Test</documentation>
        </element>
    </elements>
</model>

Expected result:

<?xml version="1.0" encoding="UTF-8"?>
<model xmlns="http://www.opengroup.org/xsd/archimate/3.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" identifier="model" version="1"
       xsi:schemaLocation="http://www.opengroup.org/xsd/archimate/3.0/">
    <name xmlns="" xml:lang="en-us">String</name>
    <elements>
        ...
    </elements>
</model>

Actual:

<model ...>
    <elements xmlns="">
    ...
    </elements>
</model>

It need the elements tag to be without any namespace as it uses the globale namespace defined in the model.

Can you give any reason or updates on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions