Warning:simplexml_load_string()expects parameter 1 to be string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjava
    New Member
    • Sep 2009
    • 132

    #1

    Warning:simplexml_load_string()expects parameter 1 to be string

    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)
    Code:
    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
    How can i parse this object by simplexml
    Thanks in advance
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    there is no property named Components in your object, at least not in the code you have given.

    Comment

    Working...