newLine at begining of XML

Post Reply
abishek.c
Posts: 11
Joined: Thu Feb 25, 2010 5:32 am

newLine at begining of XML

Post 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
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

newLine at begining of XML

Post 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.
John Turnbull
Thunderstone Software
abishek.c
Posts: 11
Joined: Thu Feb 25, 2010 5:32 am

newLine at begining of XML

Post by abishek.c »

Hi John,

The vortex script does not contain any blank lines.

Regards,
Abishek
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

newLine at begining of XML

Post 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>?
John Turnbull
Thunderstone Software
abishek.c
Posts: 11
Joined: Thu Feb 25, 2010 5:32 am

newLine at begining of XML

Post 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
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

newLine at begining of XML

Post 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.
John Turnbull
Thunderstone Software
Post Reply