I tried this instead of $parsed_xml.....
return $parsed_xml['OperationRequest']->Items->Item->ItemAttributes->ProductGroup;
and I got an error
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 21
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 21
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 21
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 21
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 23
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 23
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 23
Notice: Trying to get property of non-object in /Library/WebServer/Documents/lexsource7.php on line 23
NULL
And I also tried....
return $parsed_xml['OperationRequest']['ProductGroup'] ;
And this time I only got the same error 4 times with the null.
I also tried....
return $request['OperationRequest']['ProductGroup'] ;
and got a fatal error.