Good afternoon, guys.
I have an Electronic Invoice XML where there are several TAGs and SUBTAGs related to the products.
I created a " Foreach " to scan all products where the <CEST>
tag is empty.
Previously, the empty tag was generated as <CEST></CEST>
.
The following command 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 find items with this <CEST/>
tag?
Thank you!