diff --git a/XMLname.py b/XMLname.py index f8e48ca..5961160 100644 --- a/XMLname.py +++ b/XMLname.py @@ -71,7 +71,9 @@ def toXMLname(string): X.append(_toUnicodeHex(T[i])) else: X.append(T[i]) - + + if prefix: + return "%s:%s" % (prefix, u''.join(X)) return u''.join(X)