Skip to content

Set include_schemalocs default value to False in to_xml() #248

Closed

Description

@bworrell

xsi:schemaLocation shouldn't be used for validation, so we should disable this by default. If users want to include the xsi:schemaLocation attribute, they can pass in include_schemalocs=True to to_xml().

This may impact python-cybox as well.

Activity

  1. gtback commented on Apr 3, 2015

    @gtback
    Contributor

    👍 This is definitely a needed change, but we need to make sure to clearly highlight it in the release notes, since it is a backwards-incompatible change for those relying on the default value (even though including the schemalocs goes against best practices).

  2. bworrell commented on Apr 3, 2015

    @bworrell
    ContributorAuthor

    @gtback 👍

  3. added a commit that references this issue on Sep 22, 2026
    c6e98fe
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions