BuZZ-dEE BuZZ-dEE - 1 year ago 82
Python Question

How to set text into a DOM element

I'm trying to set text into a DOM element. I create the element.

svg_doc = minidom.parse('PATH_TO_SVG_FILE.svg')
category = svg_doc.createElement('category')

Then I try to set the

category.nodeValue = 'Design'

But I get:


instead of:


How to get the desired result with minidom?

Answer Source

I think this should work:



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download