I am having a problem accessing the @attribute section of my SimpleXML object.
XML FILE:
<?xml version="1.0" encoding="UTF-8"?>
<PrintData name="Joseph" g="M"/>
PHP:
$xml = new SimpleXMLElement($xmlstring);
echo $xml->PrintData['name'];
I am having a problem accessing the @attribute section of my SimpleXML object.
XML FILE:
<?xml version="1.0" encoding="UTF-8"?>
<PrintData name="Joseph" g="M"/>
PHP:
$xml = new SimpleXMLElement($xmlstring);
echo $xml->PrintData['name'];