def nspath(path, ns=WFS_NAMESPACE):
components = []<EOL>for component in path.split("<STR_LIT:/>"):<EOL><INDENT>if component != '<STR_LIT:*>':<EOL><INDENT>component = "<STR_LIT>" % (ns, component)<EOL><DEDENT>components.append(component)<EOL><DEDENT>return "<STR_LIT:/>".join(components)<EOL>
Prefix the given path with the given namespace identifier.

Parameters
----------
path : string
    ElementTree API Compatible path expression

ns : string
    The XML namespace. Defaults to WFS namespace.