It depends on whether both XMLs had same content (including technical identifiers such as same hash, UUID, ICV, PIH) or not. If everything remains same on both XMLs then you can disregard the same XML sent again as ZATCA will consider this as a single transaction. But if there is any difference resulting in a different hash on second XML, then you have to process a debit note for duplicate transaction submitted mistakenly.