@staticmethod
def _xpath_ns(path, namespace=None):
    if (not namespace):
        return path
    out = []
    for c in path.split('/'):
        if ((not c) or (c == '.')):
            out.append(c)
        else:
            out.append(('{%s}%s' % (namespace, c)))
    return '/'.join(out)
@staticmethod
def _xpath_ns(path, namespace=None):
    if (not namespace):
        return path
    out = []
    for c in path.split('/'):
        if ((not c) or (c == '.')):
            out.append(c)
        else:
            out.append(('{%s}%s' % (namespace, c)))
    return '/'.join(out)