def getItemTrace(self):
item, path, name, ref = self, [], '<STR_LIT:name>', '<STR_LIT>'<EOL>while not isinstance(item,XMLSchema) and not isinstance(item,WSDLToolsAdapter):<EOL><INDENT>attr = item.getAttribute(name)<EOL>if not attr:<EOL><INDENT>attr = item.getAttribute(ref)<EOL>if not attr:<EOL><INDENT>path.append('<STR_LIT>' %(item.tag))<EOL><DEDENT>else: <EOL><INDENT>path.append('<STR_LIT>' %(item.tag, attr))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>path.append('<STR_LIT>' %(item.tag,attr))<EOL><DEDENT>item = item._parent()<EOL><DEDENT>try:<EOL><INDENT>tns = item.getTargetNamespace()<EOL><DEDENT>except: <EOL><INDENT>tns = '<STR_LIT>'<EOL><DEDENT>path.append('<STR_LIT>' %(item.tag, tns))<EOL>path.reverse()<EOL>return '<STR_LIT>'.join(path)<EOL>
Returns a node trace up to the <schema> item.