Jump to content

simplexml parsing


skaterdav85

Recommended Posts

I did a print_r on a simplexml object and I get the following:

SimpleXMLElement Object(	[@attributes] => Array		(			[term] => Standards			[scheme] => Responsible Organization		) )

How do I access @attributes? I want to get the array element [scheme]. $root->@attributes throws a syntax error because of the @ symbol.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...