PDA

View Full Version : XML File Formatting



NewsArchive
09-18-2008, 01:42 AM
I am using the Handle Text File Operation function, to replace an existing
line in an XML file. The replace line works but my problem is I need to add
spaces in front of the new line so the XML file format still exists. I have
tried keying the spaces in the 'Text:' field of the Edit Text File window
and I created a new compiler variable with the spaces in front, neither
work. It still shifts the text left. Is there a way to do this?
I am using SetupBuilder Developer Edition, Version 6.0.2309.

Dee Witham

NewsArchive
09-18-2008, 01:44 AM
Dee,

> I am using the Handle Text File Operation function, to replace an existing
> line in an XML file. The replace line works but my problem is I need to
> add spaces in front of the new line so the XML file format still exists.
> I have tried keying the spaces in the 'Text:' field of the Edit Text File
> window and I created a new compiler variable with the spaces in front,
> neither work. It still shifts the text left. Is there a way to do this?
> I am using SetupBuilder Developer Edition, Version 6.0.2309.

Not in SB6. This function always removes trailing spaces from a string.

It's on the drawing board for SB7.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
09-18-2008, 01:44 AM
Fredrich - removing trailing spaces is great but I assume this also applies
to leading spaces?

Dee

NewsArchive
09-18-2008, 01:45 AM
Dee,

> Fredrich - removing trailing spaces is great but I assume this also
> applies to leading spaces?

Yes, sorry. It should read "This function always removes leading and
trailing spaces from a string".

Friedrich