0
Good afternoon, you guys.
I have an Electronic Invoice XML where there are several Tags and Subtags related to products.
I created a "Foreach" to scan all products where tag <CEST>
is empty.
In the old days, the empty tag was generated as <CEST></CEST>
.
The command below could validate this without problem:
if($xml->infNFe->det[$num_item]->prod->CEST == ''){
...
}
The problem is that now the empty TAG is generated as <CEST/>
, instead of <CEST></ CEST>
.
Any suggestions on how to locate items with this tag <CEST/>
?
Thank you!