Take the 2-minute tour ×  This XML file is named example.xml:
<?xml version="1.0"?>    <name>Environment for
UberPortalConf</name>   <description>This is the
description</description>       <!-- A lot more here, but as it
is irrelevant for the problem I have removed it -->  If I load
the example.xml file above using ElementTree and print the root
node:  >>> from xml.etree import ElementTree >>> tree =
ElementTree.parse('example.xml') >>> print tree.getroot()
<Element '{http://maven.apache.org/POM/4.0.0}project' at
0x26ee0f0>  I see that Element also contains the namespace
http://maven.apache.org/POM/4.0.0.  How do I:    1. Get the
foobarportal.version text, increase it by one and write the XML
file back while keeping the namespace the document had when
loaded and also not change the overall XML layout.   2. Get it
to load using any namespace, not just
http://maven.apache.org/POM/4.0.0. I still don´t want to strip
the namespace, as I want the XML to stay the same except for
changing foobarportal.version as in