You could use Xerxes-C for C++

For Python, you could use or

SVG data is stored as elements in an XML document, so you don't need inkex to read, update, or even create the SVG/XML file. 
XML tools will let you parse the file in, search for the tags & values you want, and update them.

- Susan