473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Warning:simplex ml_load_string( )expects parameter 1 to be string

132 New Member
I have this Error Warning:simplex ml_load_string( )expects parameter 1 to be string i use $xml=simplexml_ load_string($Re sult->Components) but I have also this error Warning:simplex ml_load_string( )expects parameter 1 to be string var_dump($Resul t)
Expand|Select|Wrap|Line Numbers
  1. object(stdClass)[94] public 'JobNumber' => int 79593 public 'JobStatus' => string 'INVOICED' (length=8) public 'ThirdPartyCode' => string 'CB0071' (length=6) public 'CustomerName' => string 'BECK CRESPEL' (length=12) public 'CustomerName_' => string '' (length=0) public 'Reference' => int 1169910 public 'ContactSeq' => string '106798' (length=6) public 'Quantity' => int 200 public 'Product' => string 'BRW' (length=3) public 'Units' => int 0
  2.  
  3.  
How can i parse this object by simplexml
Thanks in advance
Jun 10 '15 #1
1 3582
Dormilich
8,658 Recognized Expert Moderator Expert
there is no property named Components in your object, at least not in the code you have given.
Jun 10 '15 #2

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

Similar topics

5
14026
by: Belinda | last post by:
Hello All I have the following test.asp page which needs one parameter querystr but my querystr is a very long string value. When I send a long value the query string is getting truncated after some characters. Can you please kindly share the code segment to workaround how to pass such a long string value to a asp page. This is how I...
6
16809
by: KathyB | last post by:
Hi, I'm passing a parameter to a script, which sometimes fails. However, I discovered that the ones failing had parentheses within the text string, e.g., "Step: Press the (0) on the console." I've learned how to escape apostrophes, but how do I do so for parens? Is it \( ? Also, where ' was the xml entity for apostrophe, would...
4
9031
by: kishor | last post by:
I have an activeX dll, I am calling one function from that dll. I am using C# as coding language. I am getting following error. cannot convert from 'string' to 'ref string' How do I call this function ?. My statement is like this CustomOutVal = CustObj.Authenticate(txtUserName.Text, pass , Domain );
5
7810
by: Julien C. | last post by:
Hi all, I have an "EditeItem.aspx" page which lets me edit properties of an "Item". In the OnClick() event of my Save button, I do save Item changes to the database and then I redirect the user to the Item page "ViewItem.aspx" with a simple : Server.Transfer("ViewItem.aspx"); I'd like to pass another HTTP parameter so that in the...
1
7735
by: | last post by:
Hi, I've defined an ObjectDataSource and a parameterized DataSet. I would like it if I could pass the parameter value that describes the query that creates the DataSet as part of a user control declaration. Here's how the parameter is described in the context of my ObjectDataSource: <asp:ObjectDataSource ID="ObjectDataSource1"...
0
3447
by: Burton Wilkins | last post by:
Dear Authorities: I realize that in communicating with a Web Service, one is essentially passing a string as a parameter. Is there a limit over the Internet how long a parameter string can be? Or can the string be of an unlimited length, and is then simply divided up into packets? Is there a danger of loosing data if the string being...
2
2953
by: Zeya | last post by:
I have an application where I am required to run a full text query. My database is MySQL and code in C#. The way all queries are SELECT * FROM table WHERE firstname = ? and using command parameter the value of ? is added. But, how would I do the same in case of full text search. SELECT *, ROUND( MATCH(title, comments) AGAINST (? IN...
3
1635
by: gwainguard | last post by:
Hi from reading the ECMA spec. I know understand that the bracketed code after 'void Main' is an instruction that method Main accepts a string parameter array. Can someone explain to me why this is so? and why by default this method always accepts string arguments? Indebted for your time, GM.
2
3964
by: =?Utf-8?B?UmFtb24gR2VuZQ==?= | last post by:
Hello: I am building a console application and I am having an issue with the command line arguments. A couple of my arguments are paths and they are usually enclosed in double quotes. If one of the paths ends up in "\", it causes the closing double quote to be ignored and the argument gets concatenated with all the subsequent arguments...
3
2578
by: fenghuo | last post by:
I have a sub expand() to expand the path sub expand($%) { my $self = shift; my ($string, %params) = @_; # Perform parameter checks. die("Mandatory parameter 'string' not defined.") unless (defined $string); //other handling }
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
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. ...
0
6041
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...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
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
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1936
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
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.