Optimization in Office
Use const QString & instead of const char * as parameters. This reduces
the number of conversions as the string is now converted only once and
not every time a function is called from within.
Also use attributeNS directly without checking if the attribute is there.