python lxml inkscape namespace tags
问题 I am generating an SVG file that's intended to include Inkscape-specific tags. For example, inkscape:label and inkscape:groupmode . I am using lxml etree as my parser/generator. I'd like to add the label and groupmode tags to the following instance: layer = etree.SubElement(svg_instance, 'g', id="layer-id") My question is how do I achieve that in order to get the correct output form in the SVG, for example: <g inkscape:groupmode="layer" id="layer-id" inkscape:label="layer-label"> 回答1: First,