473,549 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

132 New Member
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
1 1886
Dormilich
8,658 Recognized Expert Moderator Expert
don’t confuse a JSON decoded object with XML.
Jun 17 '15 #2

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

Similar topics

1
2771
by: Chifo | last post by:
I try to connect postgres database but browser showme a error"Fatal error undefined funtion pg_connect()" somebody can helpme ? i dont know whats means, all conection string its ok this is an example: $conn=pg_connect("host=142.1240.123.10 port=3452 dbname=datbase user=mi password=pwd") thanks, regards
3
2751
by: Ming | last post by:
I am new to php5 programming :) I redirect users to another server to login. After they login successfully, they will be redirected to test.php. The server provides xml_rpc interface so I can communicate with it. After running my scripts, I get this error: Fatal error: Call to undefined method XML_RPC_Response::kindOf() in /...
5
4508
by: Dan Fulbright | last post by:
I'm trying to install PHP 5.2.2 on Windows, but I keep getting errors when running go-pear.bat: mmap cache can't open phar://go-pear.phar/index.php mmap cache can't open phar://go-pear.phar/PEAR/Start/CLI.php mmap cache can't open phar://go-pear.phar/PEAR/Start.php There are 20 of these lines. After continuing through the script, it dies...
0
1254
by: noel.whelan | last post by:
I've been working through the zend gdata client lib example for google base: http://code.google.com/apis/base/samples/php/php-sample-zend.html. I've installed the zend framework version 1.0.2 for this purpose. The first issue I experience is when I copy google's example code, which includes the line: ...
0
3656
by: youu917 | last post by:
I'm trying to code a php page that can send a email automatically. However, i don't understand the error message appeared: Fatal error: Call to undefined method PEAR_Error::send() in C:\AppServ\www\seeyouu \send_mail.php on line 22 why is PEAR_Error undefined? i'd already put the PEAR.php and Mail.php in a same directory but why the error...
3
3161
by: Mitchell Gould | last post by:
I just update my RubyGems and Rails. I am working on Rails 2.3.2 and everything was working prior to this update. Now I am getting the following error: undefined method `inject' for true:TrueClass I have no idea what this means or where it is coming from. It does not seem to matter what I delete or which page I try to load on the...
1
1892
by: Tony DeLouise | last post by:
I am getting the following error: Fatal error: Call to undefined method PropertyRequest::addBasic() in /home/content/m/a/r/maryntony/html/create.php on line 96 Line 96 in create.php //New client. Add the request to the database. $property_request_obj->cr_by = $_SESSION; $property_request_obj->company_id = $_SESSION;
1
2886
by: Wiinie | last post by:
hi all, I have an error "undefined method `each' for #<Picture:0x927dea0>" what is that mean? in my view <% @user.each do |p| %> <%= p.image %>
1
6710
by: nardlerenard | last post by:
Hello I need help please I use PHPMailer-Fe.php and i have this error Fatal error: Call to undefined method PHPMailer::SetFrom() in if (isset($_POST)) { if (isset($_POST) && trim($_POST) == '') { $_POST = $_POST; } if (stristr($mail->Version,'5.1')) { $mail->SetFrom($_POST,$_POST);
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.