I am using the SimpleXMLElement function in php to parse some xml.
One of the elements is called @attributes. How can I access it? I can't seem to use $xml->@attributes.
If I try that I get this error: syntax error, unexpected '@', expecting T_STRING or T_VARIABLE
Doing a print_r on my $xml, I get:
SimpleXMLElement Object
(
[@attributes] => Array
(
[responsecode] => 200
)
One of the elements is called @attributes. How can I access it? I can't seem to use $xml->@attributes.
If I try that I get this error: syntax error, unexpected '@', expecting T_STRING or T_VARIABLE
Doing a print_r on my $xml, I get:
SimpleXMLElement Object
(
[@attributes] => Array
(
[responsecode] => 200
)