This should be really easy, but I'm just not seeing how to do it. I just need to access the value of the element document-id.
print_r($http_result_simplexml);
gives...
SimpleXMLElement Object ( [document-id] => 1234 )
I need to get this document ID number, but I'm not getting how to do it. I tried $http_result_simplexml['document-id'], but it doesn't work. What I'm understading is that 'document-id' is the element, and '1234' is the value of the element. Another method I've come across is $http_result_simplexml->element_name, but obvisouly, the minus sign in 'document-id' won't work there.. I'm sure this is something absurdly simple..
(please correct me if that's not called the "element")