... loRoot = loXML.documentElement IF !ISNULL(loRoot) * read and display country code loElm = loRoot.selectSingleNode("Country") && note the big C if type( 'loElm' ) = 'O' lcCountry = loElm.text else ComReturnError('myclass', 'cannot find country node') endif endifFrom the client's side, they always get the following error: loElm is not an object. Of course, this error appears because of the case mismatch in the field name. According to the programmer in the client side, this is the error generated by selectSinglenode when it doesn't find the field, and that's why i checked on loElm type before using it. Any ideas why this happens?