code: def parse_localinstancepath(parser, event, node):
      
  
      #pylint: disable=unused-argument
  
      (next_event, next_node) = six.next(parser)
  
      if not _is_start(next_event, next_node, 'LOCALNAMESPACEPATH'):
          raise ParseError('Expecting LOCALNAMESPACEPATH')
  
      namespacepath = parse_localnamespacepath(parser, next_event, next_node)
  
      (next_event, next_node) = six.next(parser)
  
      if not _is_start(next_event, next_node, 'INSTANCENAME'):
          raise ParseError('Expecting INSTANCENAME')
  
      instancename = parse_instancename(parser, next_event, next_node)
  
      instancename.namespace = namespacepath
  
      return instancename
docs: Parse LOCALINSTANCEPATH element returning instancename
             <!ELEMENT LOCALINSTANCEPATH (LOCALNAMESPACEPATH, INSTANCENAME)>