Solution works fine apart from when there are characters, special to XML, in the username or password.
I would advise to fix by escaping the username and password before adding them to the XML template. The method to use for this would be 'escape' from xml.sax.saxutils.
Solution works fine apart from when there are characters, special to XML, in the username or password.
I would advise to fix by escaping the username and password before adding them to the XML template. The method to use for this would be 'escape' from xml.sax.saxutils.