writeXml adds &#xD to the end of the output file, which is not a part of the data. Tips to remove?

5 visualizaciones (últimos 30 días)
writeXml(xmltargetdir, xmlData.Name, xmlData, '1D');
xmlData.Name contains a cell array of different strings. For now its all called Random Text.
As shown here, the output contains &#xD which is not in the data. Would like some tips to cut it out of the output.

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Abr. de 2023
#xD; is carriage return. Is it possible that you are reading a file that was created in Windows, and splitting up text, but that you are not removing carriage returns when you do so?
  1 comentario
TV8
TV8 el 2 de Mayo de 2023
Thanks a ton Walter. I did find a stray character in the output of a strsplit before. Using the tempsplit = strsplit(temp,{';','\r'}); helped to take the carraige return out. Thanks for the help.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by