Jump to content

Problemas Para Criar O Xml Do Checkout Transparente


Recommended Posts

Olá amigos, estou usando a função writeElement() para gerar meu xml com o header em UTF-8, está quase tudo certo...

O Grande problema é na instrução Valor Moeda="BRL", não estou conseguindo colocar neste padrão em meu código está assim:

$xml->writeElement("ValormoedaBRL", ''.$valortotal.'');

$xml->endElement();

se utilizo espaço ou dupla aspas da erro, por favor, alguem pode me dizer como contonar este erro.

O que já tentei:

  • $xml->writeElement("Valor moeda=\"BRL\"", ''.$valortotal.'');
  • $xml->writeElement("Valor moeda="BRL"", ''.$valortotal.'');
  • $xml->writeElement('Valor moeda="BRL"', $valortotal);

Desde já muito obrigado! smile.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?