Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: serialization with defaultNS fails #12

Closed
jkowalleck opened this issue Sep 22, 2023 · 0 comments · Fixed by #20
Closed

bug: serialization with defaultNS fails #12

jkowalleck opened this issue Sep 22, 2023 · 0 comments · Fixed by #20
Assignees
Labels
bug Something isn't working

Comments

@jkowalleck
Copy link
Collaborator

serializer does not add namespaces to XML-attributes, so setting a defaultNS did not work.

the following will fail:

ElementTree.tostring(
  foo.as_xml(view_=_view, as_string=False, xmlns='myNS')
  method='xml',
  encoding='unicode', xml_declaration=True,
  default_namespace='myNS'
)
@jkowalleck jkowalleck added the bug Something isn't working label Sep 27, 2023
@jkowalleck jkowalleck self-assigned this Sep 27, 2023
jkowalleck added a commit that referenced this issue Sep 27, 2023
jkowalleck added a commit that referenced this issue Sep 27, 2023
jkowalleck added a commit that referenced this issue Oct 1, 2023
* fixes:  serialization with defaultNS fails [#12](#12)
* fixes: defaultNamespace detection fails on XML-attributes when deserializing [#11](#11)

---------

Signed-off-by: Jan Kowalleck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant