public function tagautXML($cnpj = '', $cpf = '')
{
$identificador = 'G50 <autXML> - ';
if (intval($this->versao, 10) > 2) {
$autXML = $this->dom->createElement("autXML");
if ($cnpj != '') {
$this->dom->addChild($autXML, "CNPJ", $cnpj, true, $identificador . "CNPJ do Cliente Autorizado");
} else {
$this->dom->addChild($autXML, "CPF", $cpf, true, $identificador . "CPF do Cliente Autorizado");
}
$this->aAutXML[] = $autXML;
return $autXML;
} else {
return array();
}
}