Menu

#30 multipe blank spaces are replaced by one space

v1.0_(example)
open
nobody
None
2
2013-11-13
2013-11-13
No

on a simple text tag - note the double space Mendelssohn__Fanny
"<libscan>"
" <path>C:\Users\pwatel\Music\rainer\Mendelssohn Fanny (1805-1847)</path>"
"</libscan>"
using the classical way to read it

// ==============================================================================
function TXMLIO.CoreGetValue(const fNodePath: string): string;
// ==============================================================================
begin
Result := '';
if Loaded then
oList := DOM.Document.DocumentElement.SelectNodes(fNodePath);
try
if (oList <> nil) then
if (oList.Item(0) <> nil) then
if (oList.Item(0) is TXpElement) then
Result := (oList.Item(0) as TXpElement).ElementText;
finally
FreeAndNil(oList);
end;
end;

so TXMLIO.CoreGetValue('libscan//path') would return
C:\Users\pwatel\Music\rainer\Mendelssohn Fanny (1805-1847) instead of
C:\Users\pwatel\Music\rainer\Mendelssohn Fanny (1805-1847)
given that these are folder path it is a big problem becasue I cannot find the files in it

Is there an option to set to preserve the multiple spaces or it is a bug ?
Thanks you
Regards
PW

Discussion


Log in to post a comment.

MongoDB Logo MongoDB