extractAttributeFromXml() public static method

Get a specific attribute in a namespaced tag
public static extractAttributeFromXml ( SimpleXMLElement $xml, $namespacePrefix, $attribute ) : string
$xml SimpleXMLElement
return string
 /**
  * Constructor
  * 
  * @param \SimpleXMLElement $xml
  * @param string            $postUrl
  */
 public function __construct($xml, $postUrl)
 {
     $this->xml = $xml;
     $this->postUrl = $postUrl;
     $this->setCellLocation();
     $this->content = $xml->content->__toString();
     $this->inputValue = Util::extractAttributeFromXml($xml, "gs", "inputValue");
 }
 /**
  * Get the the <gs:cell inputValue="FORMULA"> of this cell from its XML
  * 
  * @return string
  */
 public function getInputValue()
 {
     $inputValue = Util::extractAttributeFromXml($this->xml, 'inputValue', 'gs', 'cell');
     return $inputValue;
 }