Added XmlBuilder parameter to enable NS optimization
Added XmlBuilder parameter to enable NS optimization

Also optimized the implementation and fixed a bug that did not mark a namespace as used when it was used in an element.

renggli/dart-xml