Page 1 of 1

newLine at begining of XML

Posted: Thu Aug 05, 2010 8:14 am
by abishek.c
Hi,

When a vortex script sends an XML to ASP page, it is sending with 4 new line characters before the <xml tag. Is it possible to truncate those new lines?

Note: The same code works fine when the OS is solaris. It breaks in LINUX environment.

Thanks in advance for your help.

Regards,
Abishek

newLine at begining of XML

Posted: Thu Aug 05, 2010 9:53 am
by John
Yes, remove the blank lines from the script, as the script is outputting them.

I'm not sure if the difference is caused by additional carriage-returns added when copying the file, as the output should otherwise be the same.

newLine at begining of XML

Posted: Thu Aug 05, 2010 10:06 am
by abishek.c
Hi John,

The vortex script does not contain any blank lines.

Regards,
Abishek

newLine at begining of XML

Posted: Thu Aug 05, 2010 10:48 am
by John
Vortex wouldn't output blank lines unless they were in the script, or output with something like <fmt "\n">. How much happens in the script between the entry and the output of <xml>?

newLine at begining of XML

Posted: Thu Aug 05, 2010 1:02 pm
by abishek.c
Hi John,

There is no <fmt "\n"> in the code and I am getting four newlines above the <xml> tag and there is no blank spaces in between the code. I am confused, that the same code which works fine in the solaris server is causing issues with the linux server.

Regards,
Abishek

newLine at begining of XML

Posted: Thu Aug 05, 2010 4:05 pm
by John
If you want to open a ticket you can email the code to support@thunderstone.com

Are you execing any external programs and printing the results? They may be different between servers, but the actual Vortex code should produce the same output.