Ver Mensaje Individual
  #1  
Antiguo 16-09-2021
elguille elguille is offline
Miembro
 
Registrado: ene 2005
Posts: 114
Reputación: 20
elguille Va por buen camino
Cita:
Empezado por iMia Ver Mensaje
Como te han comentado más arriba el xml tiene que guardarse en UTF sin BOM

Yo lo hago así.

Código Delphi [-]
        strList := TStringList.Create;
        try
          strList.Assign(xmlTBai_Document.XML);
          strList.WriteBOM := false;
          strList.SaveToFile(strFileNameXML, TEncoding.UTF8);
        finally
          FreeAndNil(strList);
        end;

Saludos.
Efectivamente era que el fichero llevaba BOM, no he conseguido grabar sin el directamente con las chilkat, pero con la función descrita y añadiendo las lineas de detalle, ha ido perfecto. Muchas gracias a todos.
Responder Con Cita