martinblech / xmltodict

Python module that makes working with XML feel like you are working with JSON
MIT License
5.49k stars 462 forks source link

unparse pretty should prettify namespaces as well #331

Open ajslater opened 1 year ago

ajslater commented 1 year ago

Current output:

<comet xmlns:comet="http://www.denvog.com/comet/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.denvog.com/comet/comet.xsd">
</comet>

Desirable output:

<comet
  xmlns:comet="http://www.denvog.com/comet/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.denvog.com/comet/comet.xsd"
>
</comet>