def remove_feature(self,var):
if not var:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if '<STR_LIT:">' not in var:<EOL><INDENT>expr='<STR_LIT>' % (var,)<EOL><DEDENT>elif "<STR_LIT:'>" not in var:<EOL><INDENT>expr="<STR_LIT>" % (var,)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>l=self.xpath_ctxt.xpathEval(expr)<EOL>if not l:<EOL><INDENT>return<EOL><DEDENT>for f in l:<EOL><INDENT>f.unlinkNode()<EOL>f.freeNode()<EOL><DEDENT>
Remove a feature from `self`.

        :Parameters:
            - `var`: the feature name.
        :Types:
            - `var`: `unicode`