Try this
$xml->attributes()->Token
More Related Contents:
- How to convert array to SimpleXML
- Remove a child with a specific attribute, in SimpleXML for PHP
- SimpleXML: Selecting Elements Which Have A Certain Attribute Value
- Simple XML – Dealing With Colons In Nodes
- How to use XMLReader in PHP?
- Forcing a SimpleXML Object to a string, regardless of context
- Parse XML with Namespace using SimpleXML [duplicate]
- How to get the value of an attribute from XML file in PHP?
- PHP namespace simplexml problems
- Implementing condition in XPath [duplicate]
- Error: “Input is not proper UTF-8, indicate encoding !” using PHP’s simplexml_load_string
- SimpleXML and print_r() – why is this empty?
- How can I set text value of SimpleXmlElement without using its parent?
- Using SimpleXML to read RSS feed
- PHP SimpleXML: insert node at certain position
- Accessing @attribute from SimpleXML
- ‘xmlParseEntityRef: no name’ warnings while loading xml into a php file
- Updating XML node with PHP
- SimpleXML: Working with XML containing namespaces
- PHP – Processing Invalid XML
- Loop through an XML object with SimpleXML
- PHP convert XML to JSON group when there is one child
- Using SimpleXML to create an XML object from scratch
- simplexml error handling php
- PHP SimpleXML Namespace Problem
- PHP, SimpleXML, decoding entities in CDATA
- edit XML with simpleXML
- converting SOAP XML response to a PHP object or array
- How to save changed SimpleXML object back to file?
- How to import XML string in a php DOMDocument