def parse_value_namedobject(self, tup_tree):
        """
          ::

            <!ELEMENT VALUE.NAMEDOBJECT (CLASS | (INSTANCENAME, INSTANCE))>
        """

        self.check_node(tup_tree, 'VALUE.NAMEDOBJECT')

        k = kids(tup_tree)
        len_k = len(k)

        if len_k == 2:
            inst_path = self.parse_instancename(k[0])
            _object = self.parse_instance(k[1])
            _object.path = inst_path
            return (name(tup_tree), attrs(tup_tree), _object)

        if len_k == 1:
            _object = self.parse_class(k[0])
            return (name(tup_tree), attrs(tup_tree), _object)

        raise CIMXMLParseError(
            _format("Element {0!A} has invalid number of child elements "
                    "{1!A} (expecting one or two child elements "
                    "(CLASS | (INSTANCENAME, INSTANCE)))",
                    name(tup_tree), k),
            conn_id=self.conn_id)
def parse_value_namedobject ( self , tup_tree ) : self . check_node ( tup_tree , 'VALUE.NAMEDOBJECT' ) k = kids ( tup_tree ) len_k = len ( k ) if len_k == 2 : inst_path = self . parse_instancename ( k [ 0 ] ) _object = self . parse_instance ( k [ 1 ] ) _object . path = inst_path return ( name ( tup_tree ) , attrs ( tup_tree ) , _object ) if len_k == 1 : _object = self . parse_class ( k [ 0 ] ) return ( name ( tup_tree ) , attrs ( tup_tree ) , _object ) raise CIMXMLParseError ( _format ( "Element {0!A} has invalid number of child elements " "{1!A} (expecting one or two child elements " "(CLASS | (INSTANCENAME, INSTANCE)))" , name ( tup_tree ) , k ) , conn_id = self . conn_id )
::

            <!ELEMENT VALUE.NAMEDOBJECT (CLASS | (INSTANCENAME, INSTANCE))>