madpah / serializable

Pythonic library to aid with serialisation and deserialisation to/from JSON and XML.

Home Page:https://py-serializable.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: serialization with defaultNS fails

jkowalleck opened this issue · comments

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'
)