Subject: | Enhancement request: Interface to --nsclean option |
[This is an enhancement request, not a bug report, but here's as good a place as any for it to go.]
A new "--nsclean" feature to remove redundant namespace declarations has been added to libxml2 as of version 2.6.0. See http://bugzilla.gnome.org/show_bug.cgi?id=120981 for details.
I would very much like to be able to make use of this from the Perl XML::LibXML interface.
I see this as quite important since making extensive use of the createElementNS() method as described in the Gnome Bugzilla report cited above potentially adds reams of unnecessary namespace declarations into the XML document. I realise that the InfoSet of the document is not altered by this, but it is distinctly inelegant and wasteful of space.
Thanks,
- Steve