Skip to content

feat: serialized XML omit default namespaceID #438

Closed

Description

@jkowalleck

remove the XML-namespace and convert it to noNS/defaultNS by omiting the nsID

current serialization result:

<?xml version="1.0" encoding="UTF-8"?>
<ns1:bom xmlns:ns1="http://cyclonedx.org/schema/bom/1.4" ...>
</ns1:bom>

should be

<?xml version="1.0" ?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" ...>
</bom>

Activity

  1. added this to the 5.0.0 milestone on Sep 16, 2023
  2. jkowalleck commented on Sep 16, 2023

    @jkowalleck
    MemberAuthor

    This is actually a change in the serialization result, even though it is not a qualitative change.

    but shill, this is a breaking change

  3. added a commit that references this issue on Sep 22, 2023
    3579484
  4. jkowalleck commented on Sep 22, 2023

    @jkowalleck
    MemberAuthor

    for technical reasons, this is pretty hard.

    first of, the serializer does not add namespaces to XML-attributes, so setting a defaultNS did not work.
    registereing the NS as identifier '' did the trick for serialization.

    but then the deserialization happened.
    and this one was completely unavle to detect the defaultNS, and assumed it was '' -- which is the identifier for the defaultNS not the defaultNS itself ...
    and then the nameSpace-detection on XML-attributes fails ...

    ow maaaan .....


    caused

  5. removed this from the 5.0.0 milestone on Sep 22, 2023
  6. changed the title [-]feat: serialized XML omit default namespace[/-] [+]feat: serialized XML omit default namespaceID[/+] on Sep 22, 2023
  7. linked a pull request that will close this issuefeat: options for beautiful output #458on Oct 4, 2023
  8. added this to the 5.0.0 milestone on Oct 4, 2023
  9. added a commit that references this issue on Oct 4, 2023
    3bcd9e9
  10. jkowalleck commented on Oct 4, 2023

    @jkowalleck
    MemberAuthor

    closed via #458

  11. linked a pull request that will close this issuefeat!: v5.0.0 #440on Oct 5, 2023
  12. added a commit that references this issue on Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions