423,682 Members | 1,425 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,682 IT Pros & Developers. It's quick & easy.

Fatal error:call to undefined method stdClass::xpath()

100+
P: 132
I have this in xml
Expand|Select|Wrap|Line Numbers
  1. <JobReference> 
  2. <Type>STANDARD</Type> 
  3. <Title>N ANCIEN DOSSIER</Title> 
  4. <Reference/>
am having this error

Fatal error:call to undefined method stdClass::xpath() on line 190
Expand|Select|Wrap|Line Numbers
  1. $xmljobreference = simplexml_load_string ($GetJobResult->JobReferences->JobReference->Title );    
  2.  
  3. $referenceanciendossier = $GetJobResult->JobReferences->xpath( "//JobReference[@Title ='N  ANCIEN DOSSIER']/Reference" );
  4.  
  5. var_dump($referenceanciendossier);
How can i resolve this issue thanks in advance
Jun 16 '15 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
don’t confuse a JSON decoded object with XML.
Jun 17 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.