- fact.numero = atoi(xml_get_prop(node, "NroFac"));
- fact.procdoi = atof(xml_get_prop(node, "PorcDoI"));
- fact.numero_remito = atoi(xml_get_prop(node, "NroRemito"));
- strcpy(fact.emision, xml_get_prop(node, "FechaEmisión"));
- strcpy(fact.vencimiento, xml_get_prop(node, "FechaVto"));
- strcpy(fact.estado, xml_get_prop(node, "Estado"));
- strcpy(fact.fp, xml_get_prop(node, "FP"));
- strcpy(fact.ctacte, xml_get_prop(node, "NroCtaCte"));
- strcpy(fact.cheque, xml_get_prop(node, "NroCheque"));
+ prop = xml_get_prop(node, "NroFac");
+ fact.numero = atoi(prop); xmlFree(prop);
+ prop = xml_get_prop(node, "PorcDoI");
+ fact.procdoi = atof(prop); xmlFree(prop);
+ prop = xml_get_prop(node, "NroRemito");
+ fact.numero_remito = atoi(prop); xmlFree(prop);
+ strcpy(fact.emision, prop = xml_get_prop(node, "FechaEmisión")); xmlFree(prop);
+ strcpy(fact.vencimiento, prop = xml_get_prop(node, "FechaVto")); xmlFree(prop);
+ strcpy(fact.estado, prop = xml_get_prop(node, "Estado")); xmlFree(prop);
+ strcpy(fact.fp, prop = xml_get_prop(node, "FP")); xmlFree(prop);
+ strcpy(fact.ctacte, prop = xml_get_prop(node, "NroCtaCte")); xmlFree(prop);
+ strcpy(fact.cheque, prop = xml_get_prop(node, "NroCheque")); xmlFree(prop);