Greetings ...
had this issue with SAX writer. currently, I get this output
<cfdi:Retenciones> <cfdi:Retencion Importe="0" TasaOCuota="0" TipoFactor="Tasa" Impuesto="002" Base="0"> </cfdi:Retencion> </cfdi:Retenciones>
But I would like to get this..
<cfdi:Retenciones> <cfdi:Retencion Importe="0" TasaOCuota="0" TipoFactor="Tasa" Impuesto="002" Base="0" /> </cfdi:Retenciones>
Is there a way to configure sax writer?
I assume that you are using “START-ELEMENT” and “END-ELEMENT” to write the entry. Instead you can use the method “WRITE-EMPTY-ELEMENT” to get the result that you are looking for.
Take a look at the documentation: